| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What character terminates all strings composed of character
arrays?
1) 0
2) .
3) END
| | 3 |
| what r callback function? | | 1 |
| what are the general concepts of c and c++ | | 1 |
| Which is not valid in C?
1) class aClass{public:int x;}
2) /* A comment */
3) char x=12;
| | 5 |
| how to add numbers without using arithmetic operators. | TCS | 10 |
| biggest of two no's with out using if condition statement | | 2 |
| what about "char *(*(*a[])())();"
| Oracle | 2 |
| how can we use static and extern?and where can we use this? | Excel | 3 |
| how to create c progarm without void main()? | | 1 |
| Why the use of alloca() is discouraged?
| Oracle | 2 |
| void main()
{int a[5],i,b=16;
for(i=0;i<5;i++)
a[i]=2*i;
f(a,5,b);
for(i=0;i<5;i++)
printf("\n %d",a[i]);
printf("\n %d",b);
}
f(int *x,int n,int y)
{
int i;
for(i=0;i<n;i++)
*(x+i)+=2;
y=y+2;
}wat r the errors in the prg.and improvise the prg to get o/p.? | | 2 |
| O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N | ADP | 9 |
| YBJBU6 | | 1 |
| Print all the palindrome numbers.If a number is not
palindrome make it one by attaching the reverse to it.
eg:123
output:123321 (or) 12321 | | 2 |
| C passes By value or By reference? | Geometric-Software | 5 |
| How does C++ help with the tradeoff of safety vs. usability?
| | 1 |
| int a=2,b=3,c=4;
printf("a=%d,b=%d\n",a,b,c);
what is the o/p? | Verifone | 6 |
| What should not contain a header file? | | 2 |
| how many times of error occur in C | | 7 |
| There are 3 baskets of fruits with worng lables,one basket
has apple,another basket has orange,another has combination
of apple and orange,what is the least way of interchange
the lables. | Google | 10 |
| |
| For more C Interview Questions Click Here |