Recent

Comments

Follow us on Facebook

Sunday 31 December 2017

Define a structure student , first function takes the values and pass it to the second function as an argument to display them


Image result for c++


#include <iostream>
using namespace std;
struct student
{


char name [100];
int rollno;
};
student value(student);
void dispalydata(student);
main()
{
student v;
   v=value(v);
   dispalydata(v);
}
student value(student s)
{


cout<<"enter your Good name ";
cin.get(s.name,100);
cout<<"enter your roll no  ";
cin>>s.rollno;
return s;


}
void dispalydata(student s)
{
cout<<"\nfollowing is your information   ";
cout<<"\nNAME"<<"   "<<s.name<<endl;
cout<<"\nROLL NO"<<"   "<<s.rollno<<endl;

}

0 on: " Define a structure student , first function takes the values and pass it to the second function as an argument to display them"

Write a program, that takes 16-Elements in Two-Dimensional-Array that has 4 rows & 4 columns, then display the diagonal of Matrix.

Write a program, that takes 16-Elements in Two-Dimensional-Array that has 4 rows & 4 columns, then display the diagonal of Matrix. ...

propeller ads

PropellerAds