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

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

4 Answers  


How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)

0 Answers  


who was the present cheif governor of reserve bank of india

6 Answers   State Bank Of India SBI,


what is the large sustained error signal that eventually cause the controller output to drive to its limit

1 Answers   TCS,


how tally is useful?

2 Answers  






Answering Yes or No in C++...using only stdio.h and conio.h..........help me please...? here's must be the output of the program: Screen A Exam No. items Score 1 20 20 2 35 35 Another Entry? [Y] or [N] : Screen B: Record No. Student's Name: 1 Fernando Torres 2 Chuck Norris Note: if you press Y, the program must repeat the procedure in screen A, then if N, the program must proceed to the screen B....Please Help me out............

1 Answers  


2. A student studying Information Technology at Polytechnic of Namibia is examined by coursework and written examination. Both components of assessment carry a maximum of 50 marks. The following rules are used by examiners in order to pass or fail students. a. A student must score a total of 40% or more in order to pass (total = coursework marks + examination marks) b. A total mark of 39% is moderated to 40% c. Each component must be passed with a minimum mark of 20/50. If a student scores a total of 40% or more but does not achieve the minimum mark in either component he/she is given a technical fail of 39% (this mark is not moderated to 40%) d. Grades are awarded on marks that fall into the following categories. Mark 100-70 69-60 59-50 49-40 39-0 Grade A B C D E Write a program to input the marks for both components (coursework marks out of 50 and examination marks out of 50), out put the final mark and grade after any moderation. [30]

0 Answers  


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

5 Answers   TCS,


How to convert hexadecimal to binary using c language..

1 Answers   Bajaj, GAIL, Satyam, Zenqa,


#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }

12 Answers   HCL,


How to develop a program using C language to convert 8-bit binary values to decimals. TQ

1 Answers   Amazon,


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