Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

KAOS|abdullah

  • 3 years ago

find the output of the program. [assume that all the required header files are included in the program] void main() { int x[3][5]={ {18,20,13,24,35}, {7,8,6,9,10},{19,22,30,21,15} } ; int *n=&x[0][0]; cout<<endl<<(*(n+3)+1)<<":"<<*(*x+2)+5; cout<<endl<<*(*(x+2)+1)<<":"<<*(x[1]+2)+5;

  • This Question is Closed
  1. A.Avinash_Goutham
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    end1 25 18 end1 22 11 i think it's kinda straight forward #include<iostream> int main() { int x[3][5]={ {18,20,13,24,35}, {7,8,6,9,10},{19,22,30,21,15}} ; int *n=&x[0][0]; std::cout<<"endl:- "<<(*(n+3)+1) <<":"<<*(*x+2)+5<<"\n"; std::cout<<"endl:- "<<*(*(x+2)+1) <<":"<<*(x[1]+2)+5; } this is the cpp file in case u need

  2. KAOS|abdullah
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    THANX MATE!!!! I WANTED TO KNOW WHETHER I HAD WRITTEN THE CORRECT ANSWER :D

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy