| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| a=0;
b=(a=0)?2:3;
a) What will be the value of b? why
b) If in 1st stmt a=0 is replaced by -1, b=?
c) If in second stmt a=0 is replaced by -1, b=?
| Geometric-Software | 6 |
| 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 |
| write a 'c' program to sum the number of integer values | | 5 |
| Why data types in all programming languages have some range?
Why ritche have disigned first time likethat?Why not a
single data type can support all other types? | Excel | 1 |
| write a c program to check weather a particluar bit is set
or not? | IBM | 4 |
| How can I call a function, given its name as a string? | ABC-Telecom | 2 |
| I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it? | | 3 |
| wite a programme in c to linear search a data using flag and
without using flags? | TCS | 3 |
| which type of question asked from c / c++ in interview. | | 2 |
|
main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output?? | Ramco | 13 |
| What is the memory allocated by the following definition ?
int (*x)[10];
| ADITI | 3 |
| who is the founder of c | HP | 9 |
| c programming of binary addition of two binary numbers
| | 1 |
| write the program for maximum of the following numbers?
122,198,290,71,143,325,98 | | 4 |
| Find Error if any in below code, Justify ur answer:
struct xx
{
int a;
struct yy
{
char c;
struct xx* p;
}
struct yy* q;
} | NDS | 3 |
| Write a C program to print 1 2 3 ... 100 without using
loops? | | 5 |
| what is the output of the following program?
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
} | | 7 |
| Hi,
main()
{
}
Is a user defined function or Built in Functionn | Honeywell | 9 |
| what is the difference between #include<> and #include”…”? | | 1 |
| Given an array of characters which form a sentence of
words, give an efficient algorithm to reverse the order of
the words (not characters) in it? | | 3 |
| |
| For more C Interview Questions Click Here |