Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 9 Point out the errors (logical/compiler), if any, in the following program: int main(void) { int a = 12, b = 12: if (a=b)

image text in transcribed
image text in transcribed
Question 9 Point out the errors (logical/compiler), if any, in the following program: int main(void) { int a = 12, b = 12: if (a=b) printf(" a and b are equal"): return 0; } Error. Two variables cannot be declared in the same line. There is no logical or compiler error Logical error. For comparison use == and not Question 10 int main(void) { int x = 10, y = 15: if (x % 2 - y%3) printf (" Carpathians"): return 0; 3 No Error Error, printf in wrong place Error inside the if condition for improper use of

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

What are the major components of a firm's buying center?

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago