| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What are the phases in s/w developed life cycle?
wat is the diff b/w stack & queue...where do we use stack | | 5 |
| main()
{
printf("hello%d",print("QUARK test?"));
}
| | 4 |
| what is use of loop? | Infosys | 6 |
| write a own function to compare two strings with out using
stringcomparition function? | LG-Soft | 3 |
| Identify the correct argument for the function call fflush
() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 3 |
| Is it possible to run a c program without using main?If yes
HOW?? | Wipro | 10 |
| can you explain in brief what is "r+" mode in a file... i
know that it si used to read and modify rhe existing
content.... but explalanation about the file pointer in "r+"
mode i wann to know??????????? | Cognizent | 1 |
| HOW TO HANDLE EXCEPTIONS IN C | | 5 |
| 7. Identify the correct argument for the function call
fflush() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 8 |
| 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 can I set an array's size at run time? | | 7 |
| What is the output of the following program
#include<stdio.h>
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
} | ADITI | 5 |
| main()
{
int i=400,j=300;
printf("%d..%d");
}
| ME | 8 |
| will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); | | 2 |
| array contains zeros and ones as elements.we need to bring
zeros one side and one other side in single parse.
ex:a[]={0,0,1,0,1,1,0,0}
o/p={0,0,0,0,0,1,1,1} | Motorola | 7 |
| wats SIZE_T meant for? | | 1 |
| CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position. | Adobe | 4 |
| How do you write a program which produces its own source
code as its output? | | 2 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| 52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2? | | 6 |
| |
| For more C Interview Questions Click Here |