| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Describe advantages and disadvantages of the various stock
sorting algorithms | Microsoft | 1 |
| we have to use realloc only after malloc or calloc ? or we
can use initially with out depending on whether we are
using malloc or calloc in our program ? | | 1 |
| What are data breakpoints? | Adobe | 1 |
| Two's compliment of -5 | Adobe | 3 |
| n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
| Wipro | 4 |
| print ur name without using any semicolon in c/c++.... | | 6 |
| what is the difference between entry control and exit
control statement? | | 2 |
| how to sort two array of characters and make a new array of
characters. | Accenture | 1 |
| #ifdef TRUE
int I=0;
#endif
main()
{
int j=0;
printf("%d %d\n",i,j);
}
| ADITI | 2 |
| what does " calloc" do? | Cadence | 6 |
| c programming of binary addition of two binary numbers
| | 1 |
| what is the difference between declaration and definition
of a variable or function ? | | 2 |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 2 |
| HOW DO YOU HANDLE EXCEPTIONS IN C?
| AppLabs | 2 |
| what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
} | | 4 |
| program to find the second largest word in a paragraph
amongst all words that repeat more thn twice | iGate | 3 |
| what is the function of void main()? | | 6 |
| void main()
{int a[5],i,b=16;
for(i=0;i<5;i++)
a[i]=2*i;
f(a,5,b);
for(i=0;i<5;i++)
printf("\n %d",a[i]);
printf("\n %d",b);
}
f(int *x,int n,int y)
{
int i;
for(i=0;i<n;i++)
*(x+i)+=2;
y=y+2;
}wat r the errors in the prg.and improvise the prg to get o/p.? | | 2 |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 2 |
| a 'c' program to tell that the set of three coordinates lie
on a same line | Persistent | 1 |
| |
| For more C Interview Questions Click Here |