What is the output of this C code ?

Function main() {
  Integer i = 0.7 Static float m = 0.7
  If(m equals i)
  Print(“We are equal”)
  Else
  If(m > i)
  Print(“I am greater”)
  Else
  Print(“I am lesser”)
}

A. We are equal.

B. I am greater.

C. I am lesser.

D. This code will generate an error.

Answer : D. This code will generate an error.

Explanation:

Categorized in:

Recursion and Iteration

Tagged in:

, , , , , , , , , , , , , , , , , , , , , , , , , , ,

Share Article:

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock