| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Go through the following code sinippet
char a[20];
a="Hello Orcale Test";
will this compile?
| Oracle | 3 |
| what is difference between array and structure?
| TCS | 19 |
| The C language terminator is
a.semicolon
b.colon
c.period
d.exclamation mark
| TCS | 3 |
| C passes By value or By reference? | Geometric-Software | 5 |
| Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning
| Accenture | 4 |
| main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
what is the output? | Ramco | 7 |
| compute the nth mumber in the fibonacci sequence? | TCS | 7 |
| WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
| | 6 |
| why should i select you? | Wipro | 18 |
| WRITE A PROGRAM TO FIND A REVERSE OF TWO NO | | 5 |
| how we can make 3d venturing graphics on outer interface | Microsoft | 1 |
| program to find the ASCII value of a number | | 5 |
| How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST | Adobe | 2 |
| we have to use realloc only after malloc or calloc ? or we
can use initially with out depending on whether we are
using malloc or calloc in our program ? | | 1 |
| If "AaBbCc" is passed to the char
char x(*a)
{
a[0]?x(a+1):1;
printf("%c",a[0]);
return 1;
}
what will be the output?
| Hughes | 5 |
| void main()
{
int i=5;
printf("%d",i++ + ++i);
} | ME | 11 |
| write a program to generate 1st n fibonacci prime number | | 5 |
| disadvantages of realloc ? | HCL | 1 |
| what is the hexidecimal number of 4100? | Google | 14 |
| difference between semaphores and mutex? | | 1 |
| |
| For more C Interview Questions Click Here |