Pointers || Important Points & Output Problem 1

preview_player
Показать описание


Hii,
I have solved a question Based on Pointers and have illustrated some important points regarding pointers...
Thanks to Arihant Book for these questions..
Thanks for watching ...
Рекомендации по теме
Комментарии
Автор

Thank you so much sir for ur great videos

rajeevgupta
Автор

sir please make a video on this question .
Q : Find the output of the following program.
#include<iostream.h>
class Train
{
int TNo, TripNo, PersonCount;
public:
Train(int TN=1)
{
TNo=TN;
TripNo=0;
PersonCount=0;
}
void Trip(int TC=100)
{
TripNo++;
PersonCount+=TC;
}
void Show()
{
cout<<TNo<<":"<<TripNO<<":";
cout<<PersonCount<<endl;
}
};
void main()
{
Train T(10), N;
N.Trip();
T.Show();
T.Trip(70);
N.Trip(40);
N.Show();
T.Show();
}

pveldhose
Автор

sir write a program to find the sum of both diagonals separately of 2D array

pveldhose
Автор

sir i am getting problem in remembering header files of functions....

rishavbharti
visit shbcf.ru