| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is diff between localstatic and globalstatis variable
possible 2 use in another file...? | HCL | 2 |
| dibakar & vekatesh..uttejana here..abt ur reply for in
place reversal of linked list..wats p stands for there? | | 1 |
| #ifdef TRUE
int I=0;
#endif
main()
{
int j=0;
printf("%d %d\n",i,j);
}
| ADITI | 2 |
| what is the difference between normal variables and pointer
variables.............. | Satyam | 4 |
| What are .h files and what should I put in them? | | 3 |
| print the following using nested for loop.
5 4 3 2 1
1 2 3 4
3 2 1
1 2
1
2 1
1 2 3
4 3 2 1
1 2 3 4 5 | | 4 |
| What is the result
main()
{
char c=-64;
int i=-32
unsigned int u =-16;
if(c>i){
printf("pass1,");
if(c<u)
printf("pass2");
else
printf("Fail2");}
else
printf("Fail1);
if(i<u)
printf("pass2");
else
printf("Fail2")
}
a)Pass1,Pass2
b)Pass1,Fail2
c)Fail1,Pass2
d)Fail1,Fail2
e)none
| IBM | 7 |
| What is the most efficient way to count the number of bits
which are set in a value? | | 2 |
| what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
} | | 2 |
| int *a[5] refers to | TCS | 7 |
| Please list all the unary and binary operators in C. | | 1 |
| Write the program for displaying the ten most frequent words
in a file such that your program should be efficient in all
complexity measures. | Google | 3 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| what is object oriental programing? | | 1 |
| How can I invoke another program from within a C program? | | 1 |
| How the processor registers can be used in C ? | HP | 4 |
| difference between i++* and *++i | IBM | 2 |
| #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 |
| what is the difference between const volatile int i
& volatile const int j; | HCL | 1 |
| Can u return two values using return keyword? If yes, how?
If no, why? | | 6 |
| |
| For more C Interview Questions Click Here |