C Interview Questions
Questions Answers Views Company eMail

#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?

Wipro,

1 3429

Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

HCL, Cap Gemini,

2 4618

why do we use # in c-language?

1 2256




what is the difference between class and unio?

HCL, Wipro,

1095

int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }

HCL,

3 4543

To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

HCL,

1366

for(;;) printf("C language") What is out put of above??

Practical Viva Questions,

2 1809

Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print ("in if") // insert sumting } else { ///// insert sumthing print ("in else"); //// insert sumthing } can anyone modify it so that program prints. if and else both

3 1764




#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

Facebook,

2 2459

output for following code??? main() { int x=2,y,z; x*=3+2; printf("1.%d\n",x); x*=y=z=4; printf("2.%d %d %d\n",x,y,z); x=y==z; printf("3.%d\n",x); x==(y=z); printf("%d",x); }

Elysium,

2 1307

Write a c program for sum of first n terms of the series S = 1 - (1/3) + (1/5) -(1/7) + (1/9) ......

2 2144

Sir i need notes for structure,functions,pointers in c language can you help me please

TCS,

1235

How we can set and clear bit in a byte using macro function?

L&T, Samsung,

2 14061

How we can write a value to an address using macro..?

Tata Elxsi,

2077

#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }

1 2888


Post New C Questions






Un-Answered Questions { C }

what are the facialities provided by you after the selection of the student.

946


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

625


which is an algorithm for sorting in a growing Lexicographic order

638


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

723


int far *near * p; means

2197






pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

1413


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

802


can anyone suggest some site name..where i can get some good data structure puzzles???

913


Can you write the algorithm for Queue?

803


can anyone please tell about the nested interrupts?

851


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

821


application attempts to perform an operation?

711


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

838


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

453


How will you find a duplicate number in a array without negating the nos ?

920