C Interview Questions
Questions Answers Views Company eMail

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

1 2716

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

Groupon,

4 6524

#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 3897

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 1793

i have a written test in tomorrow

NNN, Value Labs,

1 3946

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,

1518

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

5056

what is software?

Wipro,

7 6436

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

3 3890

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 1451


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

Mind Tree,

1 4945

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

HP,

1714

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

HP,

1859

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

IBM,

1 2901

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

TCS,

6 12952


Post New C Questions

Un-Answered Questions { C }

how to build a exercise findig min number of e heap with list imlemented?

1612


How can I discover how many arguments a function was actually called with?

632


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7407


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1893


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1495






What are pointers? What are stacks and queues?

579


Why structure is used in c?

590


Is null valid for pointers to functions?

613


How are strings stored in c?

595


can we have joblib in a proc ?

1655


Explain two-dimensional array.

629


explain what are actual arguments?

633


What are the different types of control structures?

585


Which header file should you include if you are to develop a function which can accept variable number of arguments?

810


What is the difference between ‘g’ and “g” in C?

2539