what are the interview question's in the language c
Answers were Sorted based on User's Feedback
Interview questions in C would be :
- what are pointers?
- what do the .h files mean?
my fav ques - which i will always ask is :
** what is the differance between a[0] and *a.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / mallik
a[0] represents only that value at 0 location,but *a
represents the address of that variable stored
| Is This Answer Correct ? | 0 Yes | 0 No |
why we wont use '&' sing in aceesing the string using scanf
What are the disadvantages of c language?
write a program to find the largest and second largest integer from an array
what is the meaning of java that is (J A V A) full form of JAVA
71 Answers AKS University, Bhel, BNL, BPO, HCL, Peacecon,
count the numbers between 100 and 300, that star with 2 and ends with 2
Why is #define used?
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these
difference between native and cross compilers
Binary tree traversing
void main() { int a=1; while(a++<=1) while(a++<=2); }
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)
What is the need of structure in c?