Dsa in c++ datatype and varaible

technical talkiess
0

// use the labrarey

#include <iostream>
// using the namespace 
using namespace std;
// ; means end progran line 
// endl means new line 
// \n means new line
// start the program 
int main(){
// print hte any statement here 
cout << "Namaste Vishal" <<endl;


// varaible in c++ .... compiler ko batana padenga ki ye varaible kis type ka hai .... compiler usko memoery assign karenga 

int a = 5;
cout<< a << endl;
// character dikhane ke liye 
char b = 'v';
cout<< b <<endl;
// float 
  float c= 1.98;
  cout << c <<endl;
  // type of the varaible
  int d = sizeof(c);
  cout<< d <<endl;
}

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)