What part of the program has a BUG?

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Question

What part of the program has a BUG?


#include<conio.h>
#include<stdio.h>
main()
{
(1) int no1,no2;                            
printf(“Input 1st Number: ”);
scanf(“%i”,&no1);
printf(“\nInput 2nd Number: ”);
(2) scanf(“%f”,&no2);
(3) printf(“\nThe First number is %i and the Second number is %i”,no1,no2);
getch();
        return 0;
        }

What part of the program has a BUG?
#include<conio.h>
#include<stdio.h>
main()
{
(1) int no1,no2;
printf("Input 1st Number: ");
scanf("%i",&no1);
printf("\ninput 2nd Number: ");
(2) scanf("%f",&no2);
(3) printf("\nThe First number is %i and the Second number is %i",no1,no2);
getch();
retum 0;
}
Select one:
a. line 1
b. no error
c. line 3
d. line 2
Transcribed Image Text:What part of the program has a BUG? #include<conio.h> #include<stdio.h> main() { (1) int no1,no2; printf("Input 1st Number: "); scanf("%i",&no1); printf("\ninput 2nd Number: "); (2) scanf("%f",&no2); (3) printf("\nThe First number is %i and the Second number is %i",no1,no2); getch(); retum 0; } Select one: a. line 1 b. no error c. line 3 d. line 2
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Avoiding deadlock
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage