| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 |
| #include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}
What is the value of x?
| Oracle | 13 |
| What is meaning of "Void main" in C Language. | TCS | 8 |
| implement general tree using link list | Wipro | 1 |
| Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ?
| Mascot | 3 |
| #define min((a),(b)) ((a)<(b))?(a):(b)
main()
{
int i=0,a[20],*ptr;
ptr=a;
while(min(ptr++,&a[9])<&a[8]) i=i+1;
printf("i=%d\n",i);}
| | 3 |
| how does the C compiler interpret the following two statements
p=p+x;
q=q+y;
a.p=p+x;
q=q+y
b.p=p+xq=q+y
c.p=p+xq;
q=q+y
d.p=p+x/q=q+y
| TCS | 3 |
| What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"? | | 1 |
| Who had beaten up hooligan "CHAKULI" in his early college days? | | 1 |
| What is an object?
| | 3 |
| Go through the following code sinippet
char a[20];
a="Hello Orcale Test";
will this compile?
| Oracle | 3 |
| Difference between Class and Struct.
| Motorola | 6 |
| Would you rather wait for the results of a quicksort, a
linear search, or a bubble sort on a 200000 element array?
1) Quicksort
2) Linear Search
3) Bubble Sort
| | 2 |
| what is object oriental programing? | | 1 |
| What will be the output of
x++ + ++x? | MBT | 13 |
| whether itis a structured language? | Microsoft | 1 |
| Write a program to find the given number is odd or even
without using any loops(if,for,do,while) | | 2 |
| write a programme that inputs a number by user and gives
its multiplication table. | | 2 |
| what are the general concepts of c and c++ | | 1 |
| c programming of binary addition of two binary numbers
| | 1 |
| |
| For more C Interview Questions Click Here |