| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how to make program without <> in library.
| ADITI | 1 |
| How would you print out the data in a binary tree, level by
level, starting at the top? | Microsoft | 4 |
| what is array? | HCL | 22 |
| what is pointer ? | Kernex-Micro-Systems | 7 |
| If we give two names then this displays the connection
between the two people. It is nothing but flames game | | 1 |
| pgm in c to reverse string by word using array(god is love
becomes love is god)
(no additional array can used,space is only delimiter
between words ) | Persistent | 1 |
| 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 |
| main()
{
float a=8.8;
double b=8.8;
if(a==b)
printf("Equal");
else
printf("not equal");
getch();
}
what is the output?
with reason | | 3 |
| Give the output for the following program.
#define STYLE1 char
main()
{
typedef char STYLE2;
STYLE1 x;
STYLE2 y;
clrscr();
x=255;
y=255;
printf("%d %d\n",x,y);
}
| ADITI | 1 |
| program to get the remainder and quotant of given two
numbers with out using % and / operators? | IBM | 8 |
| A function 'q' that accepts a pointer to a character as
argument and returns a pointer to an array of integer can
be declared as:
A)int (*q(char*)) []
B)int *q(char*) []
C)int(*q)(char*) []
D)None of the Above
| Accenture | 2 |
| what is the difference between structural,object
based,object orientd programming languages? | PanTerra | 1 |
| consider the following program sigment
int n,sum=1;
switch(n) {
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;}
if n=2, what is the value of sum
a.0
b.6
c.3
d.none
| TCS | 4 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| Reverse a string word by word?? | | 6 |
| what is const volatile? | | 1 |
| what type of language is C? | Microsoft | 2 |
| How do I declare a pointer to an array? | | 5 |
| how to find turn around time in operating system? | | 1 |
| how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
| TCS | 7 |
| |
| For more C Interview Questions Click Here |