Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Aslam o Alaikum 

Write Allah with c++ 

Please download the attached file given below 

Feel free to ask any question related to programming 

Views: 424

Attachments:

Replies to This Discussion

thank you 

bohat achaw hai

Thank you 

Welcome

 

need help in these questions

Q:Write the code for calling getline() member function of cin for reading 30 characters from the keyboard and storing it in the array 'Arr' of characters.

Q:Write the code for the declaration of a function named getMax which takes a 2D array of integers(3x3 dimension) as its parameter and returns a double pointer to an integer.

Answer for Q1

char Arr[30];

getline(cin,Arr);

Asnwer for Q2
int getMax(int Arr[][4]); // declaration of function

int getMax(int Arr[][4]){ // defincation of function
return Arr;

}
main(){
int array[3][4];

getMax(array); // function calling

}

thanks Badshah

pleasure

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service