Devbrat posted an Question
August 08, 2020 • 04:15 am 30 points
  • UGC NET
  • Computer Science & Applications

Ques. what is the output of following (code c) assume that the address of x is 2000 (in decimal) and an integer requires four bytes of memory.

I think the answer should be C but it is given A. *(X+3) should return the value stored a 3 row first index, isn't?

1 Answer(s) Answer Now
  • 0 Likes
  • 1 Comments
  • 0 Shares
  • comment-profile-img>
    Nabeela best-answer

    answer would be A only...since it is 2D, it won't print data unless there are two stars..this is the shortcut logic...if there is 0 or 1 star in 2D array it will take address...it will consider data only when there 2 stars...hope you understood

whatsapp-btn

Do You Want Better RANK in Your Exam?

Start Your Preparations with Eduncle’s FREE Study Material

  • Updated Syllabus, Paper Pattern & Full Exam Details
  • Sample Theory of Most Important Topic
  • Model Test Paper with Detailed Solutions
  • Last 5 Years Question Papers & Answers