Search This Blog

Friday, April 4, 2025

functions and pointers Program 1

 What will happen when you run this program?




   a) Compile time error: mismatch of data type of function argument in line 7
   b) Prints garbage
   c) Prints 11 and 21
   d) Prints 11 and 22

Type your answer in a comment.



2 comments:

  1. After writing this code, compiling it, then running it, I can tell you with certainty that it prints 11 and 22. D.

    ReplyDelete
    Replies
    1. that is correct. Did you try to guess the output without running it?

      Delete