πŸ“Š C Programming
Q. What will be output for the following code?
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
    printf(""%s
"", argv[argc]);
    return 0;
}
  • (A) Depends on the compiler
  • (B) Depends on the platform
  • (C) Executable file name
  • (D) Segmentation fault/code crash
πŸ’¬ Discuss
βœ… Correct Answer: (D) Segmentation fault/code crash

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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