Discussion
printf("%c", 100);
Answer: B
The statement prints the ASCII equivalent of 100.
The format %c prints its argument as a single character. The value 100 is read as a character code, and in ASCII code 100 is the letter d, so the output is d. It does not print the number 100 (A), which would need %d, and the output is not garbage (C), since 100 is a valid code, so (D) is wrong as well.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development