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 |
Using string functions write a program that will accept the name of the capital as input value and will display the corresponding country. ------------------------ Capitals Countries ------------------------ Capitals Countries Ottawa Canada Moscow Russia Rome Italy I can't not get it to run properly
how tally is useful?
void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..
32 Answers College School Exams Tests, CTS, HCL, iGate, SmartData,
void main() { int i=7; printf("N= %*d",i,i); }
what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }
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 .
Write a program to accept two strings of Odd lengths. Then take all odd characters from one string and even characters from the other and concatenate and produce a string.
write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;
what is the large sustained error signal that eventually cause the controller output to drive to its limit
#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
char* f() return "hello:"; void main() {char *str=f(); }
Why are memory errors hard to debug?