C Interview Questions
Questions Answers Views Company eMail

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

1 1067

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

Groupon,

4 2769

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




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

784

i have a written test in tomorrow

Value Labs, NNN,

1 2767

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,

778

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

2969

what is software?

Wipro,

7 3267




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

3 1716

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 680


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

Mind Tree,

1 3628

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

HP,

926

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

HP,

1103

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

IBM,

1 1773

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

TCS,

6 4662


Post New C Questions






Un-Answered Questions { C }

Between macros and functions,which is better to use and why?

815


difference between Low, Middle, High Level languages in c ?

845


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

1940


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1134


C language questions for civil engineering

362






hi send me sample aptitude papers of cts?

873


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

856


c program to compute AREA under integral

962


write a program to generate address labels using structures?

1463


#include { printf("Hello"); } how compile time affects when we add additional header file .

675


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

453


write a program to concatenation the string using switch case?

816


difference between object file and executable file

4212


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

850


application attempts to perform an operation?

711