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 property in oops?
How do you achieve polymorphism?
In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance
when my application exe is running nad i don't want to create another exe what should i do
What are the two different types of polymorphism?
what is the main difference between sizeof() operator in c and c++
What is overloading in oops?
Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.
What is difference between new and malloc?
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
What is the main difference between C++ and Java
sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....