C Interview Questions
Questions Answers Views Company eMail

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

Lucent,

1 6901

what is a far pointer

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

12 34508

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

Accenture, Arba Minch University,

42 117843

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

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

5 48723

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

Accenture, College School Exams Tests, Infotech,

17 35779

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 31131

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 17041

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

ADITI, Wipro,

4 16314

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

ADITI,

2 7838

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 8554

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 6170

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

ADITI,

3 6942

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 8655

HOW DO YOU HANDLE EXCEPTIONS IN C?

AppLabs,

2 6075

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

3D PLM, Code Studio, Deltech, IBM,

28 79963


Post New C Questions

Un-Answered Questions { C }

What are the similarities between c and c++?

588


How many data structures are there in c?

604


What are the types of type qualifiers in c?

637


What is extern storage class in c?

503


What is strcpy() function?

646






What do you mean by recursion in c?

615


Explain why C language is procedural?

761


Explain how can I make sure that my program is the only one accessing a file?

612


Can you please explain the difference between strcpy() and memcpy() function?

589


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2705


Dont ansi function prototypes render lint obsolete?

596


What are unions in c?

568


What are Macros? What are its advantages and disadvantages?

631


Why do we write return 0 in c?

542


What is sizeof in c?

560