| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is calloc and malloc? | | 1 |
| here is a link to download Let_Us_C_-_Yashwant_Kanetkar | | 2 |
| The differences between Windows XP and Windows Visa
| HCL | 7 |
| void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
}
| ME | 3 |
| 11. Look at the Code:
#include<string.h>
void main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
clrscr();
i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
}
What will be the output?
A)No output B) A Non Integer C)0 D) Garbage
| Accenture | 7 |
| What is the diffrent between while and do while statement ? | | 5 |
| code for copying two strings with out strcpy() function. | | 5 |
| What are the average number of comparisons required to sort
3 elements? | | 2 |
| what is the difference between arrays and linked list | Tech-Mahindra | 15 |
| how to impliment 2 or more stacks in a single dimensional
array ? | iFlex | 1 |
| any string of bits of length 'n' represents a unique non-
negative integer between.............? | | 2 |
| a memory of 20 bytes is allocated to a string declared as
char *s then the following two statements are executed:
s="Etrance"
l=strlen(s);
what is the value of l ?
a.20
b.8
c.9
d.21
| TCS | 4 |
| Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program
| Mascot | 4 |
| can we print any string in c language without using
semicolon(;)(terminator) in whole program. | | 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 |
| Reverse a string word by word?? | | 6 |
| what are the various memory handling mechanisms in C ? | HP | 3 |
| What compilation do? | Geometric-Software | 7 |
| What does a run-time "null pointer assignment" error mean? | | 2 |
| explain about storage of union elements. | Bosch | 2 |
| |
| For more C Interview Questions Click Here |