Sumedh

C interview source code

C Interview Questions



Find frequently asked questions by IT firms like Microsoft, Yahoo, IBM, Trilogy, Symantec etc. The questions are organized in specific sections. Simple, clean answers are also provided.



C Pointers


What is the difference between const char *p, char * const p and const char * const p?

What does *p++ do? Does it increment p or the value pointed by p?

Is *(*(p+i)+j) is equivalent to p[i][j]? Is num[i] == i[num] == *(num + i) == *(i + num)?

What operations are valid on pointers?

What is the difference between an array of pointers and a pointer to an array?



Linked Lists


Given only a pointer to a node to be deleted in a singly linked list. How do you delete it?

Convert an ordered binary tree into a circular doubly linked list.



C Programs


Write a C program to reverse a string

Calculate power of 2 in one line










Each and every program runs successfully on gcc 4.







Copyright © 2002 - 07 Sumedh K