πŸ“Š C Programming
Q. What is the output of C Program?
Code:
int main()
{
    int str[]={'g','l','o','b','y'};
    printf("A%c ",str);
    printf("A%s ",str);
    printf("A%c ",str[0]);
    return 0;
}
  • (A) A A A
  • (B) A Ag Ag
  • (C) A*randomchar* Ag Ag
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) A*randomchar* Ag Ag

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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