C Interview Questions
Questions Answers Views Company eMail

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

1 2733

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

Groupon,

4 6562

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

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 1812

i have a written test in tomorrow

NNN, Value Labs,

1 3959

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,

1530

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

5071

what is software?

Wipro,

7 6498

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

3 3918

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 1459


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

Mind Tree,

1 4961

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

HP,

1722

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

HP,

1872

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

IBM,

1 2917

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

TCS,

6 13009


Post New C Questions

Un-Answered Questions { C }

What is a program?

673


Find MAXIMUM of three distinct integers using a single C statement

636


What does c mean before a date?

605


What are operators in c?

592


Explain what is gets() function?

641






Write a code to determine the total number of stops an elevator would take to serve N number of people.

740


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

1626


What is a program flowchart and explain how does it help in writing a program?

692


What is header file in c?

612


What is file in c preprocessor?

666


What is self-referential structure in c programming?

666


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

775


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

617


What do you mean by invalid pointer arithmetic?

645


Difference between malloc() and calloc() function?

666