| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How to reverse a string using a recursive function, without
swapping or using an extra memory? | Motorola | 18 |
| Whats wrong with the following function
char *string()
{
char *text[20];
strcpy(text,"Hello world");
return text;
} | Qualcomm | 3 |
| Software Interview Questions | CAT | 1 |
| What is the most efficient way to count the number of bits
which are set in a value? | | 3 |
| void main()
{
int i=5;
printf("%d",i+++++i);
}
| ME | 12 |
| program to find which character is occured more times in a
string and how many times it has occured? for example in
the sentence "i love india" the output should be i & 3. | | 3 |
| What is meant by global static? why we have to use static
variable instead of Global variable | L&T | 2 |
| IS STRUCTURES CAN BE USED WITHIN AN ARRAY? | Caritor | 7 |
| main is a predefined or user define function
if user defined why?
if predefined whay? | TCS | 2 |
| #define d 10+10
main()
{
printf("%d",d*d);
} | | 3 |
| Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work? | | 6 |
| int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
| Mascot | 9 |
| Why is conio.h not required when we save a file as .c and
use clrscr() or getch() ? | | 2 |
| biggest of two no's with out using if condition statement | | 2 |
| Is the C language is the portable language...If yes...Then
Why...and if not then what is problem so it is not a
Portable language..??? | TCS | 1 |
| 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 |
| I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it? | | 3 |
| How we add our function in liabrary as liabrary function.
Exp. we want use our int factorical(int); function as int
pow(int,int); function working in math header file. | | 1 |
| What is the difference between big endian form and little
endian form? write a code to convert big endian form to
little endian and vice versa.. | Aricent | 4 |
| What is the diffrent between while and do while statement ? | | 5 |
| |
| For more C Interview Questions Click Here |