| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How would you print out the data in a binary tree, level by
level, starting at the top? | Microsoft | 4 |
| what is the advantage of using SEMAPHORES to ORDINARY
VARIABLES??? | NSN | 1 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| 15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to? | CTS | 2 |
| program to find the second largest word in a paragraph
amongst all words that repeat more thn twice | iGate | 3 |
| i want the code for printing the output as follows
4 4
3 3
2 2
1 1
0
1 1
2 2
3 3
4 4 | | 1 |
| What does a run-time "null pointer assignment" error mean? | | 2 |
| HOW CAN ADD OUR FUNCTION IN LIBRARY. | | 5 |
| what is memory leak?
| | 3 |
| explain about storage of union elements. | Bosch | 2 |
| write a program to print the all 4digits numbers & whose
squares must me even numbers? | Virtusa | 2 |
| what is differnence b/w macro & functions | | 1 |
| Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass. | Microsoft | 6 |
| Write a program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
Don't use printf statements;use two nested loops instead.
you will have to use braces around the body of the outer
loop if it contains multiple statements. | | 2 |
| what is the use of #pragma pack, wer it is used? | Wipro | 1 |
| how can i get this by using for loop?
*
**
*
****
*
****** | Excel | 3 |
| how to estimate the disk access time?
e.g. the time between read one byte and another byte in the
disk. | Google | 3 |
| given the piece of code
int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the
following is incorrect?
a.*(a+5)
b.a[5]
c.pa[5]
d.*(*pa + 5)
| TCS | 5 |
| what is the output of the following code?
main()
{
int I;
I=0x10+010+10;
printf("x=%x",I);
}
give detailed reason | | 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 | | 5 |
| |
| For more C Interview Questions Click Here |