2021-04-16 14:07:45 +00:00
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
|
2021-04-16 18:38:46 +00:00
|
|
|
// Variable declaration
|
2021-04-16 14:07:45 +00:00
|
|
|
extern int a,b;
|
|
|
|
extern int c;
|
|
|
|
extern float f;
|
|
|
|
|
|
|
|
int main(){
|
2021-04-16 18:38:46 +00:00
|
|
|
//Variable definition
|
2021-04-16 14:07:45 +00:00
|
|
|
int a,b;
|
|
|
|
int c;
|
|
|
|
float f;
|
|
|
|
|
|
|
|
//actual initialization
|
|
|
|
a=10;
|
|
|
|
b=20;
|
|
|
|
c= a + b;
|
|
|
|
|
|
|
|
cout << c << endl ;
|
|
|
|
|
|
|
|
f=70.0/3.0;
|
|
|
|
cout << f << endl;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|