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

which typw of errors ? & how to solve it ?

0 Answers  


errors are known as?

3 Answers   EX, State Bank Of India SBI,


write a profram for selection sort whats the error in it?

2 Answers  


wap for bubble sort

3 Answers  


what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }

4 Answers  


#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }

19 Answers  


I can not get my C++ program to work right. It is supposed to tell if a word is a palindrome or not, but it only tells thet the word is not a palindrome. And I can't fix it.

1 Answers  


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

0 Answers  


void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?

24 Answers   HCL,


char* f() return "hello:"; void main() {char *str=f(); }

1 Answers  


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).

0 Answers  


class test { int a; public: test(int b):a(b){} void show(){ cout<<a; } }; void main() { test t1; test t2(5); t1.show(); t2.show(); } }

1 Answers  


Categories