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 |
Is c is a procedural language?
struct node {struct node*temp,*new} prinf("%d",sizeof(struct node));
Are there constructors in c?
Do string constants represent numerical values?
how can write all 1to 100 prime numbers using for loop,if and break ?
write a program to search for an element in a given array. If the array was found then display its position otherwise display appropriate message in c language
#include<stdio.h> #include<conio.h> # define swap(a,b) temp=a; a=b; b=temp; void main( ) { int i, j, temp; i=5; j=10; temp=0; if( i > j) swap( i, j ); printf( "%d %d %d", i, j, temp); }
What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?
CAN WE DEFINE ANY FUNCTION WITHIN A FUNCTION.
Is the C language is the portable language...If yes...Then Why...and if not then what is problem so it is not a Portable language..???
WHY DO WE USE A TERMINATOR IN C LANGUAGE?
How is a null pointer different from a dangling pointer?