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
Prepare me a program for the animation of train
What are properties in oop?
what type of question are asked in thoughtworks pair programming round ?
What is destructor give example?
any one please tell me the purpose of operator overloading
What is the point of polymorphism?
Why is destructor used?
What is the purpose of polymorphism?
Get me an image implementation program.
What is the main purpose of inheritance law?
What does sksksk mean in text slang?
Can private class be inherited?
What is encapsulation in simple terms?
Give two or more real cenario of virtual function and vertual object
What are oops functions?