Auto Modifier in C++

Master C++ with Real-time Projects and Kickstart Your Career Start Now!!

Program 1

// auto modifier in cpp
#include<iostream>
using namespace std;
int main()
{
    system("cls");
     int a{10};
     a=800;
    cout<<a;
    //   auto a=123.78f;
    //   cout<<sizeof(a) <<"  "<<a;
    //   a=12;
    //   cout<<"\n"<<sizeof(a)<< "  "<<a;
    return 0;
}

We work very hard to provide you quality material
Could you take 15 seconds and share your happy experience on Google

courses

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *