C Interview Questions
Questions Answers Views Company eMail

void main() { int *ptr; ptr = (int *) 0x400 ; printf("ptr=%d",ptr); } output?

1 2672

void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?

Groupon,

4 6429

#include int main() { int a[3][3][2]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18}; printf("%d\n",*(*(*a+1)); return 0; } What will be the output of the above question? And how?

Groupon,

1 3855

main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }

1 1740

i have a written test in tomorrow

NNN, Value Labs,

1 3907

Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

CLG,

1494

Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5027

what is software?

Wipro,

7 6321

x=y=z=1 z=++x||++y&&++z Printf("%%%d";xyz) what is the values of x,y and z?????

3 3803

write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a 1428


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

Mind Tree,

1 4893

Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

HP,

1677

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

HP,

1835

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

IBM,

1 2859

int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?

TCS,

6 12826


Post New C Questions

Un-Answered Questions { C }

How does normalization of huge pointer works?

590


What is volatile variable in c with example?

568


What is a substring in c?

557


Is c easier than java?

546


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1167






Is anything faster than c?

557


What is a structure in c language. how to initialise a structure in c?

581


List some basic data types in c?

539


int far *near * p; means

3093


What is quick sort in c?

562


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2148


difference between object file and executable file

6059


How can I do serial ("comm") port I/O?

661


What is difference between structure and union in c?

520


What is an arrays?

626