| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Please list all the unary and binary operators in C. | | 1 |
| what is a headerfile?and what will be a program without it
explain nan example? | Assurgent | 2 |
| related to rdbms query . | | 1 |
| To what value do nonglobal variables default?
1) auto
2) register
3) static
| | 4 |
| helllo sir ,
what is the main use of the pointer ,array ,and the
structure with the example of a programe | | 1 |
| long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
| HCL | 10 |
| Write code for initializing one dimentional and two
dimentional array in a C Program? | Deshaw | 5 |
| logic for generating all the combinations of the any number
of given letters.
ex:::::::::
if a,b,c,d are given the o/p should be
abcd,dcba,dbac,bcad,................
4*3*2*1 combinations............ | Infosys | 1 |
| Determine the code below, tell me exactly how many times is
the operation sum++ performed ?
for ( i = 0; i < 100; i++ )
for ( j = 100; j > 100 - i; j--)
sum++; | ITCO | 3 |
| what is the use of call back function in c?tell me with
example | | 1 |
| what is the advantage of function pointer | TCS | 9 |
| what are two categories of clint-server application
development ? | | 1 |
| how to find the kth smallest element in the given list of
array elemnts.
| Silicon | 3 |
| You are given a string which contains some special
characters. You also have set of special characters. You are
given other string (call it as pattern string). Your job is
to write a program to replace each special characters in
given string by pattern string. You are not allowed to
create new resulting string. You need to allocate some new
memory to given existing string but constraint is you can
only allocate memory one time. Allocate memory exactly what
you need not more not less. | Microsoft | 1 |
| write a function to find whether a string is palindrome or
not and how many palindrome this string contain? | | 1 |
| How can I invoke another program from within a C program? | | 1 |
| which one is not preprocessor directive
a)#if b)#elif c)#undef d)#pragma
| Wipro | 11 |
| what will be the output:
main(){char ch;int a=10;printf("%d",ch);} | Wipro | 24 |
| f(x,y,z)
{
y = y+1;
z = z+x;
}
main()
{
int a,b;
a = 2
b = 2;
f(a+b,a,a);
print a;
}
what is the value of 'a' printed | | 4 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 7 |
| |
| For more C Interview Questions Click Here |