C Interview Questions
Questions Answers Views Company eMail

Write a routine that prints out a 2-D array in spiral order!

Lucent,

1 6900

what is a far pointer

ABB, DRDO, ITI, Maruti Suzuki, Steel Plant, TCS, Toyota, Vivo Mobiles,

12 34504

Write a program to compare two strings without using the strcmp() function

Accenture, Arba Minch University,

42 117840

what is the difference between const char *p, char const *p, const char* const p

Accenture, Aricent, CTS, Geometric Software, Point Cross, Verizon,

5 48718

Write a program to interchange two variables without using the third variable?

Accenture, College School Exams Tests, Infotech,

17 35774

What is the output of the program given below #include main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

ADITI, Student, TCS,

21 31127

What is the output of the following program #include main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }

ADITI, Adobe,

8 17039

What is the memory allocated by the following definition ? int (*x)[10];

ADITI, Wipro,

4 16313

What is the memory allocated by the following definition ? int (*x)();

ADITI,

2 7837

What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }

ADITI,

4 8552

Give the output for the following program. #define STYLE1 char main() { typedef char STYLE2; STYLE1 x; STYLE2 y; clrscr(); x=255; y=255; printf("%d %d\n",x,y); }

ADITI,

2 6169

#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }

ADITI,

3 6941

What is the output for the following program #include main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }

ADITI, Wipro,

5 8652

HOW DO YOU HANDLE EXCEPTIONS IN C?

AppLabs,

2 6074

WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?

3D PLM, Code Studio, Deltech, IBM,

28 79961


Post New C Questions

Un-Answered Questions { C }

How can I get random integers in a certain range?

604


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1667


Does c have class?

604


can we implement multi-threads in c.

653


What is the usage of the pointer in c?

596






What math functions are available for integers? For floating point?

614


What are valid signatures for the Main function?

694


Are enumerations really portable?

585


When a c file is executed there are many files that are automatically opened what are they files?

578


What is c programing language?

606


Why is c called c not d or e?

600


What is a shell structure examples?

580


Why is c so powerful?

667


What library is sizeof in c?

557


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1404