| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a program to compare 2 numbers without using logical
operators? | IBM | 1 |
| Result of the following program is
main()
{
int i=0;
for(i=0;i<20;i++)
{
switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
a)0,5,9,13,17
b)5,9,13,17
c)12,17,22
d)16,21
e)syntax error
| IBM | 4 |
| C program to find frequency of each character in a text
file? | | 3 |
| How to implement call back functions ? | HP | 2 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 1 |
| AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST? | HCL | 12 |
| what is the difference between #include<stdio.h> and
#include"stdio.h" ? | TCS | 5 |
| void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
}
| ME | 3 |
| Concat two string with most overlapped substring has to
remove "abcd"+ "cdef" = "abcdef | | 5 |
| difference between i++* and *++i | IBM | 3 |
| To find whether a number is even or odd without using any
conditional operator?? | IBM | 4 |
| char ch=10;printf("%d",ch);what is the output | Accenture | 11 |
| what is the use of keyword volatile?? | LG-Soft | 4 |
| dibakar & vekatesh..uttejana here..abt ur reply for in
place reversal of linked list..wats p stands for there? | | 1 |
| fun(int x)
{
if(x > 0)
fun(x/2);
printf("%d", x);
}
above function is called as:
fun(10);
what will it print?
} | NDS | 13 |
| what is the defrenece between structure and union | | 5 |
| can we access one file to one directory? | | 1 |
| void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case | TCS | 7 |
| give one ip, find out which contry | Google | 4 |
| any string of bits of length 'n' represents a unique non-
negative integer between.............? | | 2 |
| |
| For more C Interview Questions Click Here |