C Interview Questions
Questions Answers Views Company eMail

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

1 1709

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

HCL,

13 10317

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 7222




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

Geometric Software,

7 5959

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 6074

Define function ?Explain about arguments?

Geometric Software,

2 4852

C passes By value or By reference?

Geometric Software,

5 5646

difference between my-strcpy and strcpy ?

Geometric Software, IIM,

3 9273




What compilation do?

Geometric Software,

7 4877

Write a program to exchange two variaables without temp

Geometric Software,

9 6329

why java is called as a purely oops language.

TVS,

3 5167

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

HCL, Microsoft, Infosys,

12 22624

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 27004

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

HCL, Tech Mahindra,

8 14362

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

HCL,

5 10361


Post New C Questions






Un-Answered Questions { C }

Which driver is a pure java driver

145


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

1104


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

882


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

2127


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

670






Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

1052


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

3434


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1020


C language questions for civil engineering

327


code for replace tabs with equivalent number of blanks

761


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1026


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

1764


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1107


application attempts to perform an operation?

681


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

893