What is the out put of this programme?
int a,b,c,d;

printf("Enter Number!\n");
scanf("%d",&a);
while(a=!0)

{
printf("Enter numbers/n");
scanf("%d%d%d",&b,&c,&d);
a=a*b*c*d;

}
printf("thanks!");

getche();

Entering numbers are
a=1,b=2,c=3,d=4
b=3,c=4,d=-5
b=3,c=4,d=0

Answers were Sorted based on User's Feedback



What is the out put of this programme? int a,b,c,d; printf("Enter Number!\n"); scanf(..

Answer / michael

Enter Number
1
Enter numbers
234
Enter numbers
34-5
Enter numbers
340thanks!

Is This Answer Correct ?    5 Yes 2 No

What is the out put of this programme? int a,b,c,d; printf("Enter Number!\n"); scanf(..

Answer / nagendra kumar

hat is the out put of this programme?
int a,b,c,d;

printf("Enter Number!\n");
scanf("%d",&a);
while(a=!0)

{
printf("Enter numbers/n");
scanf("%d%d%d",&b,&c,&d);
a=a*b*c*d;

}
printf("thanks!");

getche();

Entering numbers are
a=1,b=2,c=3,d=4



answer: thanks

Is This Answer Correct ?    5 Yes 2 No

What is the out put of this programme? int a,b,c,d; printf("Enter Number!\n"); scanf(..

Answer / sansiri.r

Enter Number!
1
Enter numbers
2 3 4
Enter numbers
3 4 -5
Enter numbers
3 4 0
thanks!

Is This Answer Correct ?    1 Yes 0 No

What is the out put of this programme? int a,b,c,d; printf("Enter Number!\n"); scanf(..

Answer / sansiri

Enter Number!
1
Enter numbers/n2 3 4
Enter numbers/n3 4 -5
Enter numbers/n3 4 0
thanks!

Is This Answer Correct ?    1 Yes 0 No

What is the out put of this programme? int a,b,c,d; printf("Enter Number!\n"); scanf(..

Answer / susan

It will goes to infinite loop i.e. while of true condition executes if a!=0

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C C++ Errors Interview Questions

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }

12 Answers   HCL,


char* f() return "hello:"; void main() {char *str=f(); }

1 Answers  


Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a do...while loop to compute the sum of the cubes of the first n whole numbers, and store this value in total . Thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total . Use no variables other than n , k , and total .

3 Answers  


how tally is useful?

2 Answers  


what is syntax error?

3 Answers  






What are the different types of errors in C and when they occur?

4 Answers  


To generate the series 1+3+5+7+... using C program

18 Answers  


Display this kind of output on screen. 1 0 1 1 0 1 3. Display this kind of output on screen. 1 1 0 1 0 1 4. Display this kind of output on screen. 1 1 0 1 0 1 5.Display this kind of output on screen. 1 2 3 4 5 6 7 8 9 10

1 Answers  


void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?

24 Answers   HCL,


What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS).

0 Answers  


what is run time error?

7 Answers  


I'm having trouble with coming up with the correct code. Thank You!! The assignment was to write a program using string functions that accepts a price of an item and displays its coded value. The base of the keys: X C O M P U T E R S 0 1 2 3 4 5 6 7 8 9 Sample I/O Dialogue: Enter Price: 489.50 Coded Value: PRS.UX

0 Answers  


Categories