| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how many error occurs in C language ? | Wipro | 11 |
| main()
{
float a=8.8;
double b=8.8;
if(a==b)
printf("Equal");
else
printf("not equal");
getch();
}
what is the output?
with reason | | 3 |
| How to reverse a string using a recursive function, with
swapping? | | 4 |
| what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
} | Infosys | 14 |
| How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal) | Subex | 1 |
| #include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}
What is the value of x?
| Oracle | 13 |
| Write code for atoi(x) where x is hexadecimal string. | Adobe | 2 |
| enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
| HCL | 2 |
| How can I set an array's size at run time? | | 7 |
| what is the different between if-else and switch statment
(other than syntax) | CTS | 9 |
| How does free() know how many bytes to free? | | 5 |
| Which of the following data structures is on average the
fastest for retrieving data:
1) Binary Tree
2) Hash Table
3) Stack
| | 3 |
| HOW TO HANDLE EXCEPTIONS IN C | | 5 |
| program for comparing 2 strings without strcmp() | | 3 |
| the operator for exponencation is
a.**
b.^
c.%
d.not available
| TCS | 4 |
| Program to trim a given character from a string. | NetApp | 4 |
| Add 2 64 bit numbers on a 32 bit machine | NetApp | 3 |
| Program to find the value of e raised to power x using while
loop | N-Tech | 3 |
| char ch="{'H','I',0};printf("%s",ch);what is output | Accenture | 9 |
| a 'c' program to tell that the set of three coordinates lie
on a same line | Persistent | 1 |
| |
| For more C Interview Questions Click Here |