C Interview Questions
Questions Answers Views Company eMail

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

1 1839

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

HCL,

13 11160

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 7681




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

Geometric Software,

7 6268

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 6364

Define function ?Explain about arguments?

Geometric Software,

2 5030

C passes By value or By reference?

Geometric Software,

5 5942

difference between my-strcpy and strcpy ?

Geometric Software, IIM,

3 9686




What compilation do?

Geometric Software,

7 5144

Write a program to exchange two variaables without temp

Geometric Software,

9 6647

why java is called as a purely oops language.

TVS,

3 5410

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

HCL, Infosys, Microsoft,

12 23598

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 28381

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

HCL, Tech Mahindra,

8 15427

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

HCL,

5 10886


Post New C Questions






Un-Answered Questions { C }

in iso what are the common technological language?

971


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

859


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

249


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

1261


write a program to create a sparse matrix using dynamic memory allocation.

3593






what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

520


please give me some tips for the placement in the TCS.

976


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

932


how to find binary of number?

1902


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

742


how to build a exercise findig min number of e heap with list imlemented?

839


regarding pointers concept

847


show how link list can be used to repersent the following polynomial i) 5x+2

971


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

3817


What is pre-emptive data structure and explain it with example?

2497