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

what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?

2 Answers   TCS,


How to develop a program using C language to convert 8-bit binary values to decimals. TQ

1 Answers   Amazon,


WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf("%d%d%d",x,y,z); }

25 Answers   HCL,


how tally is useful?

2 Answers  


Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?

2 Answers  






quoroum of computer languages?

0 Answers   Infosys,


what is the large sustained error signal that eventually cause the controller output to drive to its limit

1 Answers   TCS,


How to reverse a linked list without using array & -1? Thank you.

2 Answers   Access, Satyam,


how to convert decimal to binary in c using while loop without using array

50 Answers   Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,


void main() { int i=5; printf("%d",i+++++i); }

14 Answers   HCL,


I am using Qt 5.6 during compilation it stops and gives error about Qmake The process "C:QtQt5.6.35.6.3msvc2015_64inqmake.exe" crashed. Error while building/deploying project untitled1 (kit: Desktop Qt 5.6.3 MSVC2015 64bit) When executing step "qmake"

0 Answers  


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

12 Answers   HCL,


Categories