| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a program for odd numbers? | | 5 |
| Write one statement equalent to the following two statements
x=sqr(a);
return(x);
Choose from one of the alternatives
a.return(sqr(a));
b.printf("sqr(a)");
c.return(a*a*a);
d.printf("%d",sqr(a));
| TCS | 4 |
| what is a headerfile?and what will be a program without it
explain nan example? | Assurgent | 3 |
| what is pointer | TCS | 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 |
| In scanf h is used for | BFL | 2 |
| I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it? | | 3 |
| 1,4,8,13,21,30,36,45,54,63,73,?,?. | Franklin-Templeton | 3 |
| how to do in place reversal of a linked list(singly or
doubly)? | | 1 |
| What is encapsulation? | | 1 |
| How would you write qsort? | | 1 |
| Which command is more efficient?
*(ptr+1) or ptr[1] | | 3 |
| how to convert an char array to decimal array | | 2 |
| what is the difference between NULL & NUL keywords in C? | | 3 |
| How does free() know how many bytes to free? | | 3 |
| what is the difference b/w compiler and debugger? | | 1 |
| What are the different pointer models in c? | | 3 |
| f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
| HCL | 3 |
| Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work? | | 4 |
| What is sparse file? | | 1 |
| |
| For more C Interview Questions Click Here |