C Interview Questions
Questions Answers Views Company eMail

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

1 1143

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

Groupon,

4 2945

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




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); }

846

i have a written test in tomorrow

Value Labs, NNN,

1 2813

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,

811

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

3060

what is software?

Wipro,

7 3358




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

3 1827

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 718


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

Mind Tree,

1 3671

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

HP,

983

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

HP,

1142

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

IBM,

1 1818

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

TCS,

6 4952


Post New C Questions






Un-Answered Questions { C }

The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

871


Write a program that accept anumber in words

522


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

13190


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

689


which type of aspect you want from the student.

929






how to print the character with maximum occurence and print that number of occurence too in a string given ?

1307


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1128


How to establish connection with oracle database software from c language?

950


can we have joblib in a proc ?

945


c program to compute AREA under integral

1013


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1086


What is the code for 3 questions and answer check in VisualBasic.Net?

1005


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1066


char *p="name"; printf(p);

708


given post order,in order construct the corresponding binary tree

1644