| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is an object?
| | 3 |
| write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
| Motorola | 2 |
| what are two categories of clint-server application
development ? | | 1 |
| convert 12345 to 54321 withoutusing strig | | 3 |
| how to find the binary of a number? | Infosys | 5 |
| let's take a code
struct FAQ
{
int a;
char b;
float c;
double d;
int a[10];
}*temp;
now explain me how the memory will be allocated for the
structure FAQ and what address will be in the structure
pointer (temp).................... | | 7 |
| How to avoid structure padding in C? | Tech-Mahindra | 4 |
| How to set a variable in the environment list? | | 1 |
| Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work? | | 6 |
| What is the output for the following program
#include<stdio.h>
main()
{
char a[5][5],flag;
a[0][0]='A';
flag=((a==*a)&&(*a==a[0]));
printf("%d\n",flag);
}
| ADITI | 5 |
| void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case | TCS | 7 |
| Can you think of a way when a program crashed before
reaching main? If yes how? | | 2 |
| Difference between Class and Struct.
| Motorola | 6 |
| how can i make a program with this kind of output..
Enter a number: 5
0
01
012
0123
01234
012345
01234
0123
012
01
0 | Wipro | 3 |
| Write a C++ program without using any loop (if, for, while
etc) to print numbers from 1 to 100 and 100 to 1;
| | 7 |
| how to find out the inorder successor of a node in a tree?? | TCS | 2 |
| design and implement a program that reads floating-points
numbers in a sentinel-controlled loop until the user
terminates the program by entering zero.your program should
determinate and print the smallest,largest and average of
the supplied numbers. | | 1 |
| what is the difference between <stdio.h> and "stdio.h" | Kanbay | 5 |
| how to display 2-D array elements in spiral | | 1 |
| difference between i++* and *++i | IBM | 3 |
| |
| For more C Interview Questions Click Here |