C Interview Questions
Questions Answers Views Company eMail

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

1 1784

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

HCL,

13 10766

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 7490




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

Geometric Software,

7 6114

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 6223

Define function ?Explain about arguments?

Geometric Software,

2 4951

C passes By value or By reference?

Geometric Software,

5 5817

difference between my-strcpy and strcpy ?

Geometric Software, IIM,

3 9474




What compilation do?

Geometric Software,

7 5030

Write a program to exchange two variaables without temp

Geometric Software,

9 6506

why java is called as a purely oops language.

TVS,

3 5306

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

HCL, Microsoft, Infosys,

12 23186

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 27794

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

HCL, Tech Mahindra,

8 14932

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

HCL,

5 10642


Post New C Questions






Un-Answered Questions { C }

how do you programme Carrier Sense Multiple Access

823


write a program to rearrange the array such way that all even elements should come first and next come odd

980


Hai what is the different types of versions and their differences

794


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1151


what is the role you expect in software industry?

975






What is C language ?

793


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

797


what will be the output for the following main() { printf("hi" "hello"); }

5328


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

884


which is an algorithm for sorting in a growing Lexicographic order

649


Explain output of printf("Hello World"-'A'+'B'); ?

205


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1154


what is ur strangth & weekness

1066


Between macros and functions,which is better to use and why?

832


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

470