Author Topic: The follwoing statement printf("&f", (float)9/5); prints [Programming with C)  (Read 297 times)

Offline mechanic

  • Engineer
  • Hero Engineer
  • *****
  • Posts: 2275
    • View Profile
    • Engineering Forum
Advertisement
Question: The follwoing statement

printf ("&f", (float)9/5);


prints

Options are:


A. 1.8
B. 1.0
C. 2.0
D. None of the above

Correct answer is:

A. 1.8


Engineering Forum



 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
type: "mehran" without quotes: