C Interview Questions
Questions Answers Views Company eMail

What does the message "warning: macro replacement within a string literal" mean?

1 2783

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?

HCL,

13 19779

a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

Geometric Software,

6 12838

f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?

Geometric Software,

7 10210

f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?

Geometric Software,

5 9193

Define function ?Explain about arguments?

Geometric Software, Infosys,

2 7483

C passes By value or By reference?

Geometric Software, Infosys,

5 8997

difference between my-strcpy and strcpy ?

Geometric Software, IIM, Infosys,

3 13216

What compilation do?

Geometric Software, Infosys,

7 8859

Write a program to exchange two variaables without temp

Geometric Software,

9 10682

why java is called as a purely oops language.

TVS,

3 7239

macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration

HCL, Infosys, Microsoft,

12 32624

enum day = { jan = 1 ,feb=4, april, may} what is the value of may? a)4 b)5 c)6 d)11 e)none of the above

HCL, Wipro,

8 40709

2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x);

HCL, Tech Mahindra,

9 28510

fn f(x) { if(x<=0) return; else f(x-1)+x; }

HCL,

5 16264


Post New C Questions

Un-Answered Questions { C }

What are data types in c language?

578


Is c object oriented?

528


Why main is not a keyword in c?

637


Give me the code of in-order recursive and non-recursive.

871


Who invented bcpl language?

695






can we implement multi-threads in c.

651


What is the benefit of using #define to declare a constant?

595


Where static variables are stored in memory in c?

513


Write a program of advanced Fibonacci series.

696


can we change the default calling convention in c if yes than how.........?

2023


List the difference between a 'copy constructor' and a 'assignment operator' in C?

627


Explain what are bus errors, memory faults, and core dumps?

778


What is a buffer in c?

564


What does the c preprocessor do?

609


How will you divide two numbers in a MACRO?

690