Q. What will be output of the following c code?

Code:
#include “string.h”
void main(){
clrscr();
printf(“%d %d”,sizeof(“string”),strlen(“string”));
getch();
}
  • (A) 6 6
  • (B) 7 7
  • (C) 7 6
  • (D) 6 7
πŸ’¬ Discuss
βœ… Correct Answer: (C) 7 6

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
208
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate