Computer Science, asked by parthkhatri0987, 5 months ago

Write a program in c to demonstrate long/short/signed/unsigned Type modifiers.​

Answers

Answered by savagekshiraj
1

#include <iostream>

using namespace std;

/* This program shows the difference between

* signed and unsigned integers.

*/

int main() {

short int i; // a signed short integer

short unsigned int j; // an unsigned short integer

j = 50000;

i = j;

cout << i << " " << j;

return 0;

}

FOLLOW ME

MARK ME AS BRAINIEST

Similar questions