Write on signed and unsigned integers and give three (3)
examples each
Answer / 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 |
What is use of overloading?
What are generic functions and generic classes?
What is abstraction example?
what is the difference between containership and inheritence?
What is encapsulation selenium?
tel me oops defination in single line
What does and I oop mean in text?
What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5
What is abstract class in oops?
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?
Program to check whether a word starts with a capital letter or not.
what are the characteristics of oops?