Popular Articles

India is home to great literature and two of the greatest epics originated from the sub-continent. They are the Ramayana and the Mahabharata. The Mahabharata
Gift buying is something most people just swear by. Of all things it counts up to make a gift count, it can become a nightmare for some to zero in on the
As per science, the universe was born with the Big Bang. Religions argue that everything was created by an almighty God. Amidst the scientific theories

Latest Articles

Gift buying is something most people just swear by. Of all things it counts up to make a gift count, it can become a nightmare for some to zero in on the
India is home to great literature and two of the greatest epics originated from the sub-continent. They are the Ramayana and the Mahabharata. The Mahabharata
As per science, the universe was born with the Big Bang. Religions argue that everything was created by an almighty God. Amidst the scientific theories

////////////////////////////////////////
#include

////////////////////////////////////////
// The main() function.
////////////////////////////////////////
int main()
{
     // Three uninitialized variables, different types.
     char myChar;
     short int myInt;
     long myLong;

     // An initialized variable of yet another type.
     float myFloat = 7e4;

     // Assign and convert.
     myChar = myInt = myLong = myFloat;

     // Display the variables.
     std::cout << myChar;
     std::cout << ' ';
     std::cout << myInt;
     std::cout << ' ';
     std::cout << myLong;
     std::cout << ' ';
     std::cout << myFloat;

     return 0;
}

  • No comments found