C Interview Questions
Questions Answers Views Company eMail

In which area global, external variables are stored?

3 6731

what is inline function?

2 4175

why program counter is 16 bit?

3 4910

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?

7 27806

can we define a function in structure?

2 5248

can we declare a function in side the structure?

HCL,

2 3582

can we initialize all the members of union?

2 6761

what is the structure pointer?

Accenture, HCL,

1632

where do we use volatile keyword?

1 3474

Find greatest of two numbers using macro

Bosch, Siemens,

4 35297

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,

6 6010

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

HCL, Syntel, TCS,

2 4854

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

2 9937

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,

1 11532

Can you write the algorithm for Queue?

College School Exams Tests, TCS,

1536


Post New C Questions

Un-Answered Questions { C }

code for replace tabs with equivalent number of blanks

1625


Why is event driven programming or procedural programming, better within specific scenario?

1938


What is c variable?

540


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

613


What functions are in conio h?

643






Write a program to print factorial of given number using recursion?

589


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5164


What is the advantage of c?

600


What is the use of a static variable in c?

578


What is the difference between break and continue?

596


If errno contains a nonzero number, is there an error?

782


What is the difference between call by value and call by reference in c?

603


Why doesn't C support function overloading?

1592


Explain the properties of union. What is the size of a union variable

705


What is LINKED LIST? How can you access the last element in a linked list?

621