RSS Subscribe

This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Showing posts with label C Sample Technical Questions. Show all posts
Showing posts with label C Sample Technical Questions. Show all posts

Sunday, 26 June 2011

C Sample Technical Questions

Here are some sample C sums for a successful job interviewing.      1.main()  {  static int var = 6; printf("%d ",var--);  if(var) main(); } Answer:6 5 4 3 2 1 Explanation: When static storage class is given, it is initialized once. The change in the value of a static variable is retained even between the function calls. Main is also treated like any other ordinary function, which can be called recursively.     2.main() {  float me = 2.1;  double you = 2.1;  if(me==you)  printf("...

Twitter Delicious Facebook Digg Stumbleupon Favorites More