C Interview Questions
Questions Answers Views Company eMail

How do you access command-line arguments?

1 1558

what does ‘#include’ mean?

TCS,

1 2943

what is the difference between #include<> and #include”…”?

4 3146




what are # pragma staments?

768

what is the most appropriate way to write a multi-statement macro?

1 2995

what is the disadvantage of using macros?

Wipro,

1 4214

what is the self-referential structure?

1 3416

can a union be self-referenced?

1 4639




What is a pointer?

IFFCO,

1 2339

What is the Lvalue and Rvalue?

2 4149

what is a void pointer?

2 2202

why arithmetic operation can’t be performed on a void pointer?

1 5219

compare array with pointer?

1 2322

what is a NULL pointer?

2 1990

what does ‘segmentation violation’ mean?

1 2219


Post New C Questions






Un-Answered Questions { C }

Explain the process of converting a Tree into a Binary Tree.

1049


what is ur strangth & weekness

988


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

1010


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

629


main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }

725






why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

392


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

771


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

1691


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1029


cavium networks written test pattern ..

1981


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

1435


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

762


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

1236


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

975


what will be the output for the following main() { printf("hi" "hello"); }

5059