Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

C Interview Questions

In which area global, external variables are stored?

5286

what is inline function?

3243

why program counter is 16 bit?

3680

void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?

20011

can we define a function in structure?

4240

can we declare a function in side the structure?

HCL,

2800

can we initialize all the members of union?

5738

what is the structure pointer?

1222

where do we use volatile keyword?

2716

Find greatest of two numbers using macro

31766

what will be the output of this program........ main() { int a=2,b=4,c=6; printf("%d"); } why it gives the value of third variable.

HCL,

4190

increment operateor (++)and decrament(--) #include #inclide main() { int x=15; while(x!=0) scanf("%d",&x); {

HCL, Syntel, TCS,

3588

Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.

8902

Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.

TCS,

10817

Can you write the algorithm for Queue?

1106

Is main a keyword in c?

175

What is c definition?

162

Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

3867

Is it better to use a macro or a function?

180

What is the heap?

167

How can I handle floating-point exceptions gracefully?

166

‎How to define structures? · ‎

134

What is volatile variable in c?

113

Is anything faster than c?

134

Why void is used in c?

110

The statement, int(*x[]) () what does in indicate?

167

Can you add pointers together? Why would you?

169