C Interview Questions
Questions Answers Views Company eMail

Write a program that can show the multiplication table.

Student,

1420

Write a program that will read the input of any number of digits n in a row of shafh showing the breakdown of the printing and printing figures by the recursive function.

1583

Write a program that an operator and two operands read from input operand operator on the implementation and results display.

1381

A program to allow an input operand and operator from the operator and read on the display and output operand.

1440

int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }

2 2553

Function shall sum members of given one-dimensional array. However, it should sum only members whose number of ones in the binary representation is higher than defined threshold (e.g. if the threshold is 4, number 255 will be counted and 15 will not) - The array length is arbitrary - output the results to the stdout

XYZ,

1551

int i=~0; uint j=(uint)i; j++; printf(ā€œ%dā€,j);

1 3505

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d %d ",SQR(i),i * SQR(i)); } a)9 27 b)35 60 c)20 60 d)15 175

Wipro,

5 5225

print the table 5 in loops

3 3074

how to print 212 as Twohundreds twelve plz provide me ans soon

1 3974

int i=0,j; j=++i + ++i ++i; printf(" %d",j);

ME,

2 3180

#include #include void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }

2 3234

#include int main() { if ("X" <"x") printf("X smaller than x "); } my question is whats the mistake in this program? find it and please tell me..

3 3755

int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?

2 2229

#include void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }

SRG,

3 3883


Post New C Questions

Un-Answered Questions { C }

Which header file is used for clrscr?

569


What is function and its example?

619


Write a program that accept anumber in words

1244


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

596


Is c call by value?

595






How can you find the exact size of a data type in c?

591


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

651


What library is sizeof in c?

557


Explain what is wrong with this statement? Myname = ?robin?;

986


Are the expressions * ptr ++ and ++ * ptr same?

659


How many bytes are occupied by near, far and huge pointers (dos)?

657


What is the use of pointers in C?

610


hi any body pls give me company name interview conduct "c" language only

1659


What is time null in c?

574


What is pointers in c with example?

572