What is difference between the following 2 lines….

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

Answer Posted / mandoos

first is an integer declaration and initializing it with a
hex value

Second will produce syntax error, is that question is correct?

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by high-order and low-order bytes?

848


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

2004


What is sizeof int in c?

821


Why isnt any of this standardized in c?

846


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

2160


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

999


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

877


Define macros.

1029


What is the right type to use for boolean values in c? Is there a standard type?

792


Do variables need to be initialized?

813


Write a program to check armstrong number in c?

862


What is difference between %d and %i in c?

911


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1887


What are types of structure?

827


Explain what is the difference between the expression '++a' and 'a++'?

881