What is difference between the following 2 lines….

int temp = (int)(0x00);
int temp = (0x00int);

Answer Posted / s.srinivasulu

first one is valid initialization and
second one syntax error and it will give compilation error

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1842


How do you write a program which produces its own source code as output?

852


What are the back slash character constants or escape sequence charactersavailable in c?

936


Can we replace the struct function in tree syntax with a union?

1020


Explain the use of fflush() function?

857


What is c variable?

803


List the difference between a While & Do While loops?

860


what are # pragma staments?

1820


How can I list all of the predefined identifiers?

770


What language is c written?

758


What is the time and space complexities of merge sort and when is it preferred over quick sort?

880


What is the use of a semicolon (;) at the end of every program statement?

1146


the question is that what you have been doing all these periods (one year gap)

1860


What are the 4 types of unions?

797


Why double pointer is used in c?

790