Here you will find some very simple and very silly C questions.Though the questions looks very innocent and sily to answer this kind of a question one needs very serious reading and understanding of the subjects.If you can answer more than 50 percent of these questions with out opening a book now or seraching in google then you can beat most of the interview questions and more or less okay with your C understanding.These questions comes in GATE, ISI admission test and in many other places.So If you are really serious about your career just start solving these questions.
Answer page link will be published in a few days.
C Basics
Q-1. What is the return type of printf();?
Q-2. What is the return type of main()?
Q-3. What will be the output?
printf("%d",printf("RajuTutorial"));
Q-4. What is the difference between:
#include<filename.h>
and
#include "filename.h"
Q-5. What will be the output?
printf("%b",5);
Q-6. What will be the output?
printf("%X",12);
Q-7. what will be the output?
char ch;
for(ch=0;ch<255;ch++)
{
printf("%d",ch);
}
Q-8. Find the output?
char x='A';
char y='B';
int c=x+y;
printf("%d",c);
Q-9. Name the intermediate file generated during compilation of a C source code in windows and Linux environment?
Q-10. Can we write assembly code block inside a C source and compile?