| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| main is a predefined or user define function
if user defined why?
if predefined whay? | TCS | 2 |
| WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N
TIMES C COMES N TIMES D COMES N TIMES AND SO ON.........
AT LAST UNTIL Z COMES N TIMES...............
| | 3 |
| main()
{
clrscr();
}
clrscr();
| ME | 3 |
| There are 3 baskets of fruits with worng lables,one basket
has apple,another basket has orange,another has combination
of apple and orange,what is the least way of interchange
the lables. | Google | 10 |
| Why preprocessor should come before source code?
| | 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 |
| what is the diff b/w static and non static variables in C.
Give some examples plz. | Wipro | 2 |
| 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 |
| 9.how do you write a function that takes a variable number
of arguments? What is the prototype of printf () function?
10.How do you access command-line arguments?
11.what does ‘#include<stdio.h>’ mean?
12.what is the difference between #include<> and #include”…”?
13.what are # pragma staments?
14.what is the most appropriate way to write a
multi-statement macro? | L&T | 4 |
| how to return 1000 variables from functio9n in c?plz give me
code also | | 5 |
| what is a far pointer | TCS | 9 |
| How can I invoke another program from within a C program? | | 6 |
| Give me basis knowledge of c , c++... | | 4 |
| 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 |
| Write a program to find the given number is odd or even
without using any loops(if,for,do,while) | | 2 |
| which operator having highest precedence?
a.)+ b.)++ c.)= d.)%
| | 3 |
| void main(int argc,char *argv[],char *env[])
{
int i;
for(i=1;i<argc;i++)
printf("%s",env[i]);
} | | 2 |
| How to avoid structure padding in C? | Tech-Mahindra | 4 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 2 |
| explain about storage of union elements. | Bosch | 2 |
| |
| For more C Interview Questions Click Here |