Subscribe:Posts Comments | Read Articles on Various Topics - Pro Articles

You Are Here: Home » Sample Placement Papers, Subex Test Papers » Subex Technical Paper Questions C Language

Some Subex Technical Questions and programs to solve are:

void main()
{
enum bool{true,false};
if(true==(2==3)
printf(“..
else
printf(“..
}

void main()
{
printf(“%d”,(float)3/2);
}

void main()
{
int (*func)(const *char)=strlen;
printf(“%d”, func(“Hello”);
}

These are C language IT company coding, programming language technical / tech written test questions.

void main() {
char *s=”Hello World”;
printf(“%c”,s);
}

File fp,fs;
fp=fopen(“tc.dat”,”w”);
fs=fopen(“tc.dat”,”w”);
putch(‘A’,fp);
putch(‘B’,fs); What will happen?

What is the equivalent of a[i] Ans: *(a+i)
These are the Subex azure C language programs and questions related to pointers, operator overloading, file handling, etc.
int (*func)(int,int) is a pointer to a function with 2 integers as parameters and returning an integer value.

int *(*func)(int *,int *) is a pointer to a function with 2 integer pointers as parameters and returning a pointer to

an integer Which of a and b is true?
Ans: Both are true.

switch(float value) this is compiler error.

int a[5]={1,2,3,4,5};
int *p=a+1;
int *q=a+5;

int dif=q-p;
value of dif is 4 ( q-p is evalueated as q-p/sizeof int)

Switch(NULL)
ans: case 0: will be executed.

#define exp 5
printf(“%d”,exp++);
ans: compilation error lvalue required

strcat(str,str);
ans: compilation error

Pointers can be subtracted from each other, can be added, constant can be added or subtracted from pointer, but multipilcation with constant to pointer is not possible.

int(*ptr)[10] pointer to array of 10 integers.

See other related MNC Subex Azure placement – employment test papers for freshers and experienced developers, c programmers, developers and tech / technical interview questions with real candidate experiences. ALso see other IT MNC / companies employment test paper questions here.

Related Posts

Leave a Reply

© Copyright 2010 Latestexams. All Rights Reserved | Privacy Policy | Terms & Conditions