C Interview Questions
Questions Answers Views Company eMail

Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program

Mascot,

5 5584

char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)

Mascot,

7 7432

Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ?

TCS, Mascot,

8 10091




int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?

Mascot,

15 10021

write a C code to reverse a string using a recursive function, without swapping or using an extra memory.

TCS, Wipro, Motorola,

9 33166

write a C code To reverse a linked list

Wipro, Motorola,

2 11664

Difference between Class and Struct.

Ericsson, Wipro, Motorola,

13 29296

Tell about strtok & strstr functions

Motorola, iFlex,

2 13304




two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.

Verifone,

5 4458

int a=2,b=3,c=4; printf("a=%d,b=%d\n",a,b,c); what is the o/p?

Verifone,

6 9269

C program code int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

TCS, Wipro,

6 12242

n=7623 { temp=n/10; result=temp*10+ result; n=n/10 }

Wipro,

7 6671

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

Wipro,

10 7477

The C language terminator is a.semicolon b.colon c.period d.exclamation mark

TCS,

6 8072

What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.

TCS, CCEM,

5 15250


Post New C Questions






Un-Answered Questions { C }

‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1102


Which is the memory area not included in C program? give the reason

723


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

753


how is the examination pattern?

814


Is Exception handling possible in c language?

766






How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

820


Write a c program to demonstrate character and string constants?

871


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

771


I need previous papers of CSC.......plz help out by posting them.......

905


will u please send me the placement papers to my mail???????????????????

564


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

856


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

908


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.

1064


regarding pointers concept

726


why wipro wase

1007