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
Answer / michael
Enter Number
1
Enter numbers
234
Enter numbers
34-5
Enter numbers
340thanks!
Is This Answer Correct ? | 5 Yes | 2 No |
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 |
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 |
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 |
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
How to develop a program using C language to convert 8-bit binary values to decimals. TQ
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); }
how tally is useful?
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?
quoroum of computer languages?
what is the large sustained error signal that eventually cause the controller output to drive to its limit
How to reverse a linked list without using array & -1? Thank you.
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); }
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"
#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }