| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is #pragma directive?how it is used in the program?
what is its advantages and disadvantages? | | 1 |
| How can I invoke another program from within a C program? | | 1 |
| what is the return value (status code) of exit() function....
what the arguments(integer value) passed to it means.... | TCS | 1 |
| will u give me old quesrion papers for aptitude for L & t
info tech? | L&T | 1 |
| #define min((a),(b)) ((a)<(b))?(a):(b)
main()
{
int i=0,a[20],*ptr;
ptr=a;
while(min(ptr++,&a[9])<&a[8]) i=i+1;
printf("i=%d\n",i);}
| | 2 |
| Read N characters in to an array . Use functions to do all
problems and pass the address of array to function.
1. Print only the alphabets . If in upper case print in
lower case vice versa. | | 1 |
| compute the nth mumber in the fibonacci sequence? | TCS | 6 |
| what is the defrenece between structure and union | | 4 |
| i want explaination about the program and its stack reprasetaion
fibbo(int n)
{
if(n==1 or n==0)
return n;
else
return fibbo(n-1)+fibbo(n-2);
}
main()
{
fibbo(6);
}
| | 2 |
| int a=2,b=3,c=4;
printf("a=%d,b=%d\n",a,b,c);
what is the o/p? | Verifone | 4 |
| what is y value of the code if input x=10
y=5;
if (x==10)
else if(x==9)
elae y=8;
a.9
b.8
c.6
d.7
| TCS | 1 |
| How can I access memory located at a certain address? | | 2 |
| When is an interface "good"?
| | 1 |
| why we shiuld use main keyword in C | | 4 |
| How can I prevent other programmers from violating
encapsulation by seeing the private parts of my class? | | 1 |
| How would you print out the data in a binary tree, level by
level, starting at the top? | | 3 |
| WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N
TIMES C COMES N TIMES D COMES N TIMES AND SO ON.........
AT LAST UNTIL Z COMES N TIMES...............
| | 2 |
| to find the program of matrix multiplication using arrays | | 1 |
| what information does the header files contain? | BSNL | 4 |
| what is dangling pointer? | LG-Soft | 1 |
| |
| For more C Interview Questions Click Here |