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 the code for following o/p * * * * * * * * * * * * * * * *
What are the different types of errors in C and when they occur?
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).
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
how tally is useful?
what is meant for variable not found?
how to convert decimal to binary in c using while loop without using array
50 Answers Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,
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
write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;
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 .
Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;
How to create a program that lists the capital country when told what the original country is? (Terribly sorry, I'm a novice programmer and would appreciate any help ;). Cheers, Alexxis