| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| # define prod(a,b)=a*b
main()
{
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }
the output of the program is
a.8
b.6
c.7
d.none
| TCS | 5 |
| What is the memory allocated by the following definition ?
int (*x)[10];
| ADITI | 3 |
| what is a far pointer | TCS | 9 |
| write a program that finds the factorial of a number using
recursion? | | 1 |
| Every time i run a c-code in editor,
getting some runtime error and editor is disposing,
even after reinstalling the software
what may be the problem? | | 2 |
| Go through the following code sinippet
char a[20];
a="Hello Orcale Test";
will this compile?
| Oracle | 3 |
| What are the commands should be given before weiting C
Program i.e, Cd.. like | Infonet | 3 |
| What's a "sequence point"? | | 2 |
| main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs? | CitiGroup | 7 |
| What is memmove? | Oracle | 1 |
| Name the language in which the compiler of "c" in written? | Bajaj | 1 |
| Write a program to compare two strings without using the
strcmp() function | Accenture | 14 |
| How many types of linked lists what are they?
How many types of data structures? | BSNL | 5 |
| HOW DO YOU HANDLE EXCEPTIONS IN C?
| AppLabs | 2 |
| How do I declare an array of N pointers to functions
returning pointers to functions returning pointers
to characters?
| | 1 |
| 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 |
| how to find out the union of two character arrays? | | 1 |
| pgm to find number of words starting with capital letters
in a file(additional memory usage not allowed)(if a word
starting with capital also next letter in word is capital
cann't be counted twice) | Subex | 1 |
| What is structure packing ? | HP | 1 |
| write a program in c language for the multiplication of two
matrices using pointers? | Ignou | 5 |
| |
| For more C Interview Questions Click Here |