C Interview Questions
Questions Answers Views Company eMail

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

1 2926

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

Groupon,

4 7000

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

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 1996

i have a written test in tomorrow

NNN, Value Labs,

1 4138

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,

1647

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

5234

what is software?

Wipro,

7 7063

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

3 4229

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 1570


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

Mind Tree,

1 5131

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

HP,

1825

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

HP,

1988

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

IBM,

1 3091

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

TCS,

6 13653


Post New C Questions

Un-Answered Questions { C }

Explain what is the difference between functions abs() and fabs()?

736


What is d'n in c?

764


Are the variables argc and argv are always local to main?

677


What is string in c language?

747


Explain what is the difference between a free-standing and a hosted environment?

775






write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2555


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

730


Explain the term printf() and scanf() used in c language?

725


What does 2n 4c mean?

890


When should volatile modifier be used?

675


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1656


What are the different types of data structures in c?

759


Explain a file operation in C with an example.

776


What are the 5 types of inheritance in c ++?

695


What does sizeof int return?

728