#include <iostream> using namespace std; struct data{ int x; int y; char c; }; int main() { data se; data *p; p=&se; p->x=5; p->y=7; p->c='z'; cout<<p->x*p->y<<endl; cout<<p->c<<endl; system("pause"); return 0; }The output is given below:
35 z
c, c++ , java, oracle, database design, c tutorial, c++ tutorial, java tutorial, oracle tutorial, programming, make program easy, c programming, c advance program, java advance program
#include <iostream> using namespace std; struct data{ int x; int y; char c; }; int main() { data se; data *p; p=&se; p->x=5; p->y=7; p->c='z'; cout<<p->x*p->y<<endl; cout<<p->c<<endl; system("pause"); return 0; }The output is given below:
35 z
All rights reserved||Using Deluxe Template By Klodian
0 comments:
Post a Comment