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 |
#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(); }
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 .
how tally is useful?
what is syntax error?
What are the different types of errors in C and when they occur?
To generate the series 1+3+5+7+... using C program
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
void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?
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 run time error?
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