{}
BLACK NOVEMBER
Get 66% off PRO
Are you struggling to build your coding confidence or land your first job?
Fast-track to your first pay-check.
Start PRO
Start PRO
BLACK NOVEMBER
Get 66% off PRO
Are you struggling to build your coding confidence or land your first job?
Fast-track to your first pay-check.
Start PRO
Start PRO
run-icon
main.cpp
#include<iostream> #include<iomanip> using namespace std; int main() { typedef struct emp { int id; char empcahr; float salary; }emp; emp aryan,ka; aryan. id=1; aryan. empcahr='k'; aryan.salary=8700000; ka. id=2; ka. empcahr='a'; ka.salary=9700000; cout<<"ID of Employe is: "<<aryan.id<<endl; cout<<"Fav character of Employe is: "<<aryan.empcahr<<endl; cout<<"Salary of Employe is: "<<aryan.salary<<endl; cout<<endl; cout<<"ID of Employe is: "<<ka.id<<endl; cout<<"Fav character of Employe is: "<<ka.empcahr<<endl; cout<<"Salary of Employe is: "<<ka.salary<<endl; }
Output