C Interview Questions
Questions Answers Views Company eMail

What is the difference between macros and inline functions?

Global Edge, L&T,

5 10424

what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d",x); }

1 3139

How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?

2 3614

What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 4682

what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf("%d",i)-1; }

3 4514

Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.

Drona Solutions, Infosys, Vodafone, Webyog,

2 10284

write a programe to find the factorial of given number using recursion

3 6488

write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.

3 3907

FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?

Wipro,

4 5416

void main() { char c; while(c=getchar()!='\n') printf("%d",c); } o/p=11 why?

Wipro,

8 10923

if we take a number as a char then can we manipulate(add, subtract) on this number

2 3296

In which category does main function belong??

5 5471

4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

5 6621

what is an inline fuction??

2 3540

find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

TCS,

1533


Post New C Questions

Un-Answered Questions { C }

What Is The Difference Between Null And Void Pointer?

649


Explain 'bus error'?

565


How can I read in an object file and jump to locations in it?

583


What is selection sort in c?

613


What are the types of data types and explain?

675






What is a newline escape sequence?

668


Is null always equal to 0(zero)?

589


Was 2000 a leap year?

635


What is the difference between char array and char pointer?

528


What is the use of function overloading in C?

686


What is data structure in c and its types?

598


How can I convert a number to a string?

611


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

817


What are qualifiers in c?

575


How are pointers declared in c?

603