Thursday, March 3, 2011

C Programs

Some C programs for the preparation of the interview.....

1. WAP to find the factorial of a no. (with & without recursion).
2. WAP to check whether a no. is armstrong.
3. WAP to create the fibonacci series upto n terms.
4. WAP to print a string in reverse.
5. WAP to check whether a no. is prime.
6. WAP to scroll your name on the screen from left to right.
7. WAP to revers a link list.
8. WAP to delete the first element of the link list.
9.WAP to print the following output.
*
***
*****
*******
10.WAP to check whether a string is palindrome.

C Interview Questions



1. What does static variable mean?
2.What is a structure?
3.What is an array?
4.Difference between malloc() & calloc().
5.Difference between array & linked list.
6.Difference between array & structure.
7.What is the use of typedef?
8.What is recursion?
9.Difference between printf() & fprintf().
10.What is Union?
11.Difference between Union & Structure.
12.What is a null pointer?
13. What is a generic pointer?
14.What is the different storage classes in C?
15. What is register variable?