Write on signed and unsigned integers and give three (3)
examples each
Answer Posted / durga.g
signed integers : which contains both the +ve and -ve numbers
. The format specifier for signed integers is %d or we can
use %i also.
the range is same as the int.
Unsigned integers:
the range of unsigned integer is 0to65535.
the format specifier for this is %u.
generally this is used to print the address of a variable.
unsigned integer doesnt contain negative value.
eg:
main()
{
int i;
printf("enter i value");
scanf("%d",&i);
printf("the value stored in the i variable is%d",i);
printf("address is %u",&i);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain virtual inheritance?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
is there any choice in opting subjects like 4 out of 7
What is abstraction oop?
What is meant by oops concept?
Why multiple inheritance is not possible?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is object in oops?
What is difference between oop and pop?
What is the purpose of enum?
What does and I oop mean?
What is object in oop?
What is oops concept with example?
What is abstraction encapsulation?
Describe these concepts: Polymorphism, Inheritance and Abstraction.