C Interview Questions
Questions Answers Views Company eMail

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

Lucent,

1 7108

what is a far pointer

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

12 35498

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

Accenture, Arba Minch University,

42 120702

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

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

5 49274

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

Accenture, College School Exams Tests, Infotech,

17 37232

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 32707

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 17794

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

ADITI, Wipro,

4 16762

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

ADITI,

2 8111

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 8980

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 6458

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

ADITI,

3 7330

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 9188

HOW DO YOU HANDLE EXCEPTIONS IN C?

AppLabs,

2 6335

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

3D PLM, Code Studio, Deltech, IBM,

28 82005


Post New C Questions

Un-Answered Questions { C }

illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1729


What is #include stdio h?

800


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

724


What is graph in c?

706


How can I swap two values without using a temporary?

720






Explain what is the concatenation operator?

720


What is a dynamic array in c?

688


Define recursion in c.

815


What would be an example of a structure analogous to structure c?

683


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

781


What is #include stdlib h?

725


When should I declare a function?

740


What is huge pointer in c?

688


Does c have an equivalent to pascals with statement?

675


What is a lvalue

769