| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| 2)#include<iostream.h>
main()
{
printf("Hello World");
}
the program prints Hello World without changing main() the
o/p should
be
intialisation
Hello World
Desruct
the changes should be
a)iostream operator<<(iostream os, char*s)
os<<'intialisation'<<(Hello World)<<Destruct
b) c) d)none of the above | Siemens | 4 |
| Write a program that takes three variables(a,b,c) in as
separate parameters and rotates the values stored so that
value a goes to b,b,to c and c to a | | 3 |
| The differences between Windows XP and Windows Visa
| HCL | 7 |
| What is structure padding & expalain wid example
what is bit wise structure? | | 1 |
| long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
| HCL | 11 |
| how to find that no is int or float? | | 5 |
| identify the in correct expression
a.a=b=3=4;
b.a=b=c=d=0;
float a=int b=3.5;
d.int a;
float b;
a=b=3.5;
| TCS | 5 |
| How would you write qsort? | | 1 |
| WRITE A PROGRAM IN C TO MULTIPLY TWO 2-D ARRAYS | | 4 |
| how can we use static and extern?and where can we use this? | Excel | 3 |
| write a program to find out number of on bits in a number?
| Huawei | 12 |
| n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
| Wipro | 4 |
| What are the average number of comparisons required to sort
3 elements? | | 2 |
| write a c program to accept a given integer value and print
its value in words | | 3 |
| how to generate the length of a string without using len
funtion? | | 3 |
| what is data structure
| | 4 |
| Program to trim a given character from a string. | NetApp | 4 |
| can anyone proide me reading material on
svit00ef27@yahoo.com please thanx in advance
| IBM | 1 |
| how to copy a string without using c function | | 5 |
| |
| For more C Interview Questions Click Here |