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
why reinterpret cast is considered dangerous?
• What are the desirable attributes for memory managment?
What is polymorphism oop?
what is difference between class template and template class?
State what is encapsulation and friend function?
What is the benefit of oop?
What is the fundamental idea of oop?
what type of questions
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What does and I oop and sksksk mean?
can inline function declare in private part of class?
What is persistence in oop?
What are the benefits of interface?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?