Sei sulla pagina 1di 3

Launched Website For C Interview Questions To Clear Technical Interviews

A new website for learning C programming has been launched which will guide you to the learn the basics of C from scratch. The site name is C Interview Questions And Answers which covers the twisted and basic questions in field of computer science and it also contains maximum number of possible C interview questions that can be asked in interviews related to stacks, queue and so on. C coding are used in almost every program or software system. Specific C programming are essential ingredients of many efficient algorithms, and make possible the management of huge amounts of data, such as large databases. Some formal design methods and programming languages emphasize data structures, rather than algorithms, as the key organizing factor in software design. All the answers given for the questions given in the site are verified by professors and so my sincere advice is too read those questions daily and I guarantee that hr of different companies will mostly concentrate on the questions that are given in that site so this is a easy way to impress Hr quickly in a easier way without any trouble. Generally interviewer will surely ask about the project work done in college in each and every interview and you can impress him only if you know the exact operation of each and every component that you used in your project and so this site so this site will help you to achieve success in a short way. I am sure that the above mentioned website will also be useful to your friends. .Mentioned some of the questions which are present in the above site to know about its quality.If you want to read the entire questions and answers ,visit http:/www.interview-c-questions.blogspot.com/ Sample Questions from the website: Question:In printf() Function- What is the difference between "printf(...)" and "sprintf(...)"? Answer: sprintf(...) writes data to the character array whereas printf(...) writes data to the standard output device. Question Compilation How to reduce a final size of executable? Answer:Size of the final executable can be reduced using dynamic linking for libraries.

Question:How does free( ) know how many bytes to free? Answer: The malloc( ) / free( ) implementation remembers the size of each block allocated and returned, so it is not necessary to remind it of the size when freeing.

http://www.interview-c-questions.blogspot.com

Page 1

Question:What is the use of randomize( ) and srand( ) function? Answer: While generating random numbers in a program, sometimes we require to control the series of numbers that random number generator creates. The process of assigning the random number generators starting number is called seeding the generator. The randomize( ) and srand( ) functions are used to seed the random number generators. The randomize( ) function uses PC's clock to produce a random seed, whereas the srand( ) function allows us to specify the random number generator's starting value. Question:What's the difference between these two declarations? struct str1 { ... } ; typedef struct { ... } str2 ; Answer : The first form declares a structure tag whereas the second declares a typedef. The main difference is that the second declaration is of a slightly more abstract type -- its users don't necessarily know that it is a structure, and the keyword struct is not used when declaring instances of it. Question: How do I print the contents of environment variables? Answer: The following program shows how to achieve this: main( int argc, char *argv[ ], char *env[ ] ) { int i = 0 ; clrscr( ) ; while ( env[ i ] ) printf ( "\n%s", env[ i++ ] ) ; } main( ) has the third command line argument env, which is an array of pointers to the strings. Each pointer points to an environment variable from the list of environment variables.

http://www.interview-c-questions.blogspot.com

Page 2

Question:Why n++ executes quicker compared to n+1 ? Answer:The expression n++ needs a single machine instruction such as INR to carry out the increment operation whereas, n+1 needs more instructions to carry out this operation. Question:What is the purpose of main( ) function ? Answer:The function main( ) invokes other functions within it.It is the first function to be called when the program starts execution.It returns an int value to the environment that called the program.Recursive call is allowed for main( ) also.It has two arguments 1)argument count and 2) argument vector (represents strings passed). Question:What is the simplest sorting method to use? Answer:The answer is the standard library function qsort(). It is already written and already debugged and also it has been optimized as much as possible (usually). Void qsort(void *buf, size_t num, size_t size, int (*comp)(const void *ele1, const void *ele2));

For further questions and answers ,visit C Interview Questions With Answers

http://www.interview-c-questions.blogspot.com

Page 3

Potrebbero piacerti anche