| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Blade logic interview question.
1st round is a written tests with 15 multiple questions
from c and c++. All are simple basic question.
Like int main ()
{
Int i=65;
Return printf(“%c”, i);
}
2nd and 3rd round is technical interview.
The position for which I was interview was core UNIX and c.
Yes it is for system programming.
The company has product name blade server. For their server
they are creating their own command for their purpose.
Example cd command.
We can implement it in a c program by using the chdir()
function.
So the question asks related to PID, fork, pipe, shared
memory, signal.
Write a program in c which will act as cp command.
| BladeLogic | 1 |
| how can i get output like this?
1
2 3
4 5 6 | Excel | 3 |
| How can I set an array's size at run time? | | 7 |
| write a program for odd numbers? | | 6 |
| write a c program to find biggest of 3 number without
relational operator? | Wipro | 2 |
| main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
| CitiGroup | 4 |
| Difference Between embedded software and soft ware? | Bosch | 1 |
| sir,
i cannot find the way how to write aprogram by using
array on queue | IISIT | 1 |
| Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work? | | 6 |
| What is the function of ceil(X) defined in math.h do?
A)It returns the value rounded down to the next lower
integer
B)it returns the value rounded up to the next higher integer
C)the Next Higher Value
D)the next lower value | Accenture | 3 |
| main()
{char a[10]={1,2,3,4,5,6};int x;
for(x=0;x<4;x++){ b[x]=x+'a';}
printf("%s",b);}
| | 3 |
| write a program to arrange the contents of a 1D array in
ascending order | | 3 |
| how many keywords do C compile? | Microsoft | 2 |
| Result of the following program is
main()
{
int i=0;
for(i=0;i<20;i++)
{
switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
a)0,5,9,13,17
b)5,9,13,17
c)12,17,22
d)16,21
e)syntax error
| IBM | 4 |
| print ur name without using any semicolon in c/c++.... | | 6 |
| How can I allocate arrays or structures bigger than 64K? | | 4 |
| HOW TO SWAP TWO NOS IN ONE STEP? | Satyam | 12 |
| enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
| ME | 3 |
| write a own function to compare two strings with out using
stringcomparition function? | LG-Soft | 3 |
| Which of these statements are false w.r.t File Functions?
i)fputs() ii)fdopen() iii)fgetpos() iv)ferror()
A)ii B)i,ii C)iii D)iv
| Accenture | 5 |
| |
| For more C Interview Questions Click Here |