Sunday, 25 April 2021

Assign Multiple Values at a time in C/C++ Variable

 #include<iostream.h>

#include<conio.h>


int main()

{

clrscr();

int a=(4,5,7);

cout<<a<<endl;

int b;

b=(3,4,5);

cout<<b<<endl;

//int c=3,4;

//cout<<c<<endl;

int d;

d=3,4,5;

cout<<d<<endl;

getch();

return 0;


}

No comments:

Post a Comment