| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| #define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
}
int swap2(int a,int b)
{
int temp;
temp=a;
b=a;
a=temp;
return;
}
what are the outputs? | Ramco | 4 |
| for(i=1;i>0;i++);
printf("i=%d",i);
what will be the answer???? | | 6 |
| O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N | ADP | 9 |
| why i join syntel? | Syntel | 12 |
| pick out the odd one out of the following
a.malloc()
b.calloc()
c.free()
d.realloc()
| TCS | 1 |
| what is call by value and call by reference | | 2 |
| int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?
| Verifone | 14 |
| what is the use of getch() function in C program..
difference b/w getch() and getche()?? | Wipro | 12 |
| Write a program to compute the following
1!+2!+...n! | | 3 |
| a C prog to swap 2 no.s without using variables just an
array? | TCS | 4 |
| which one of follwoing will read a character from keyboard
and store in c
a)c=getc()
b)c=getchar()
c)c=getchar(stdin)
d)getc(&c)
e)none | | 5 |
| YBJBU6 | | 1 |
| what is data structure
| | 4 |
| nnnn | | 1 |
| wats SIZE_T meant for? | | 1 |
| what is self refrential structure | HCL | 2 |
| what's the return value of malloc() | | 8 |
| Convert the following expression to postfix and prefix
X $ Y Z - M + N + P / Q / (R + S)
| | 2 |
| why division operator not work in case of float constant? | | 1 |
| Print all the palindrome numbers.If a number is not
palindrome make it one by attaching the reverse to it.
eg:123
output:123321 (or) 12321 | | 2 |
| |
| For more C Interview Questions Click Here |