| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| c programming of binary addition of two binary numbers
| | 1 |
| what is the difference between these initializations?
Char a[]=”string”;
Char *p=”literal”;
Does *p++ increment p, or what it points to?
| | 2 |
| Binary tree traversing | Qualcomm | 1 |
| How would you sort a linked list? | | 1 |
| 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 |
| How can I set an array's size at run time? | | 7 |
| What is the Difference between Class and Struct? | Motorola | 9 |
| what are the difference between ANSI C and Let Us c and Turbo C | LG-Soft | 1 |
| Sir i want e-notes of C languge of BAlaguruswami book i.e
scanned or pdf file of balaguruswamy book on c
language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com
| | 4 |
| What's the difference between calloc() and malloc()? | | 3 |
| 4.weight conversion:
Write a program that will read weight in pounds and convert
it into grams.print both the original weight and the
converted value.There are 454 grams in a pound.design and
carry out a test plan for this program.
| Wipro | 1 |
| Give me basis knowledge of c , c++... | | 4 |
| Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}
| ME | 3 |
| what are two categories of clint-server application
development ? | | 1 |
| What is Heap? | | 3 |
| write a function which accept two numbers from main() and
interchange them using pointers? | | 3 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| 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? | | 1 |
| how can i get output like this?
1
2 3
4 5 6 | Excel | 3 |
| How to write a code for random pick from 1-1000 numbers?
The output should contain the 10 numbers from the range
1-1000 which should pick randomly, ie ,for each time we run
the code we should get different outputs. | NetApp | 12 |
| |
| For more C Interview Questions Click Here |