πŸ“Š C Programming
Q. What is the output of C Program with functions and pointers?
Code:
int myshow(int);

void main()
{
   int a=10;
   myshow(a);
   myshow(&a);
}

int myshow(int b)
{
    printf("Received %d, ", b);
}
  • (A) Received 10, Received 10,
  • (B) Received 10, Received RANDOMNumber,
  • (C) Received 10, Received RANDOMNumber, with a compiler warning
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) Received 10, Received RANDOMNumber, with a compiler warning

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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