Académique Documents
Professionnel Documents
Culture Documents
The document only captures the type of question asked and does not contain the accurate question. The objective is
discuss the logic behind each question. The paper consists of 3 sections , the first section consists of C programming
question the second section was of embedded and third section was of telecom basics.
Section 1 C programming
int main
{
int x =4 ;
int y = 5;
x = y++ + x++;
y = ++x + ++y;
Ans 2. x = 12, y = 20
Ques 3. The declaration for an array of 10 function pointers returning void* and taking no argument is ?
Ans 3. void* (*pfunct)()[10];
pq = &q;
q.temp_i = 11;
q.temp_j = 12;
printf(“%d”,(*pq).temp_i);
}
1. 11
2. Memory location of the member variable temp_i
3. 10
4. Error
Ans 5. 11
Int main()
{
char *p = “One”,”Two”;
char *q= (“One”,”Two”);
printf(“%s %s”,p,q);
1. Two One
2. One One
3. One Two One Two
Ans 6.
Ques 7. Assuming a 32 bit aligned machine the size of the following structure will be.
struct example {
char a;
int b;
float c;
short d;
};
Ans 7. 16
int main ()
{
struct example {
union {
int a:8;
int b:8;
int c:8;
int d:8
}
int x;
}p;
p.x = 0xAABBCCDD;
Ans 8.
Ques 9. Declaration of a function pointer returning void and taking int as argument is
Ans 9. void (*pfn)(int)
Ques 10. Give the value of x=3 and y=6 the output of the following program will
x=x^y
y =y^x
x=x^y
Ans 10. x = 6 y = 3
int main()
{
char a[] = “C Programming”;
char *p = “C Programming”;
printf(“%c %c”,*a[0],
Ans 11.
#define Str(x) #x
#define Op(x) Str(x)
#define
int main()
{
Op(plus);
}
Ques 13.
typedef union {
union {
int a;
int b;
int c;
}
union{
char x;
char y;
char z;
}
union{
}
}
Ans 13. 6
1. *
2. &
3. Both