| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 |
| pgm to find middle element of linklist(in efficent manner) | Huawei | 2 |
| what is a c-language.what is do. | HCL | 3 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| To find whether a number is even or odd without using any
conditional operator?? | IBM | 4 |
| #include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
Tell me the output? | Ramco | 5 |
| what is the function of void main()? | | 6 |
| i want explaination about the program and its stack reprasetaion
fibbo(int n)
{
if(n==1 or n==0)
return n;
else
return fibbo(n-1)+fibbo(n-2);
}
main()
{
fibbo(6);
}
| | 2 |
| 1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array? | Qualcomm | 2 |
| #define min((a),(b)) ((a)<(b))?(a):(b)
main()
{
int i=0,a[20],*ptr;
ptr=a;
while(min(ptr++,&a[9])<&a[8]) i=i+1;
printf("i=%d\n",i);}
| | 3 |
| WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE? | IBM | 5 |
| hat is a pointer? | Assurgent | 3 |
| without using arithmatic operator convert an intger variable
x into x+1 | | 1 |
| what does data structure mean? | | 7 |
| What is the output of following program ?
int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
} | Qualcomm | 3 |
| is compiler do read the data line by line or not.
?? | LG-Soft | 3 |
| what is the difference between #include<stdio.h> and
#include "stdio.h" ? | | 2 |
| Read N characters in to an array . Use functions to do all
problems and pass the address of array to function.
1. Print only the alphabets . If in upper case print in
lower case vice versa. | | 1 |
| write a C program to print the program itself ?! | TCS | 11 |
| code for copying two strings with out strcpy() function. | | 5 |
| |
| For more C Interview Questions Click Here |