Showing posts with label C Interview Questions With Ans Part8. Show all posts
Showing posts with label C Interview Questions With Ans Part8. Show all posts

Friday, 29 July 2011

c-Language Interview Questions With Answers Part8

71. What are the two forms of #include directive?Ans:1.#include”filename”2.#includethe first form is used to search the directory that contains the source file.If the search fails in the home directory it searches the implementation defined locations.In the second form ,the preprocessor searches the file only in the implementation defined locations.72. How would you use the functions randomize() and random()?Ans:Randomize() initiates random number generation with a random value.Random() generates random number between 0 and n-1;73. What do the functions atoi(), itoa() and gcvt() do?Ans:atoi() is a macro that converts integer to character.itoa() It converts an integer to stringgcvt() It converts a floating point number to string74. How would you use the functions fseek(), freed(), fwrite()...

Popular Posts

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls