| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the output of the following program
#include<stdio.h>
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
} | ADITI | 5 |
| how can i get output like this?
1
2 3
4 5 6 | Excel | 3 |
| what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
} | Infosys | 14 |
| What is a class? | | 2 |
| what is the use of #pragma pack, wer it is used? | Wipro | 1 |
| what is the differnce between AF_INET and PF_INET? | Wipro | 2 |
| What is the diffrent between while and do while statement ? | | 5 |
| What character terminates all strings composed of character
arrays?
1) 0
2) .
3) END
| | 3 |
| what is const volatile? | | 1 |
| How can I return multiple values from a function? | | 4 |
| what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
} | | 4 |
| what is the output of the following program?
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
} | | 7 |
| what is compiler | | 5 |
| what is the difference between normal variables and pointer
variables.............. | Satyam | 7 |
| Design a program using an array that lists even numbers and
odd numbers separately from the 12 numbers supplied by a user. | | 7 |
| HOW DO YOU HANDLE EXCEPTIONS IN C?
| AppLabs | 2 |
| what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
} | | 3 |
| wite a programme in c to linear search a data using flag and
without using flags? | TCS | 3 |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 2 |
| What is the difference b/w main() in C language and main()
in C++. | | 6 |
| |
| For more C Interview Questions Click Here |