C Interview Questions
Questions Answers Views Company eMail

main() { clrscr(); } clrscr();

ME, Wipro,

6 15894

enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

ME,

4 15243

void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

ME, pspl,

3 28597

main() { int i=400,j=300; printf("%d..%d"); }

ME,

13 23203

main() { char *p; p="Hello"; printf("%c\n",*&*p); }

ME,

2 17322

main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }

ME,

3 13636

void main() { int i=5; printf("%d",i++ + ++i); }

ME,

21 37307

void main() { int i=5; printf("%d",i+++++i); }

ME,

17 17875

#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

ME,

6 17284

what is the maximum no. of bytes calloc can allocate

Mphasis,

4 8516

how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);

RMSI,

19 19340

what is the use of using linked list and array?

Infosys, TCS,

10 12292

What is the diffences between Windows XP and Windows Visa

Aricent, FHF,

1 6934

The differences between Windows XP and Windows Visa

HCL,

8 9305

why should i select you?

Wipro,

21 21018


Post New C Questions

Un-Answered Questions { C }

explain what is an endless loop?

595


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

2186


Explain main function in c?

613


How to write a multi-statement macro?

610


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

701






Explain what is operator promotion?

618


What is a pointer value and address in c?

617


What is the difference between malloc() and calloc() function in c language?

587


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.

1363


What is identifier in c?

533


What are near, far and huge pointers?

634


What is calloc()?

615


What is c standard library?

676


Why main is not a keyword in c?

635


What is character set?

675