Are you a C programming beginners, or just finished the learning of c programming language and looking for the job in c programming, then this tutorial will help you lot. Please keep your close attention in this tutorial as I am going to share some common c programming interview question with answers & example.
Question 1: What is c language?
Question 2: How to write a c program to print “Hello world” without using any semicolon?
Answer: You can print the “Hello World” without using any semicolon with the help of if statement. See the below example:
Question 3: What is pointer in c programming language?
Question 4: How to swap two variables without using any third variable?
Question 5: What is NULL pointer in c language?
Answer: Null pointer is a special reserved value of a pointer in c language and it is used to indicate that the pointer doesn’t point to a valid location. see the below example:
int fun(int *ptr)
//Fun specific stuff is done with ptr
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: c interview question, c interview question and answer, c program, c program examples, c program examples with output, c programming interview questions with answers, c questions for interview, interview questions c programming, interview questions on c with answers, programming interview questions