Computer Science, asked by sdiya9726, 11 months ago

What is the output of statement: printf( "%4s", "Krusha");?(a) Krus
(b) usha
(c) Krusha
(d) Krush

Answers

Answered by NirmalPandya
0

Krusha

  • The%s stands for "right here, input the first argument, a string." The second parameter, an integer, should go there, according to the %d. Different%-codes for various variable kinds are available, along with options to restrict the length of the variables and other things. Character control.
  • Here the counting of charachter starts from 0 the output will be krusha.
  • Using the printf function's %s format specifier, we can print the string. The text from the specified beginning address to the null character "0" will be printed. The string's initial address is the name itself. So, if we enter a string name, the complete string will be printed.

#SPJ2

Attachments:
Answered by Farhadshaikh0786
0

C (Krusha) is the answer

Similar questions