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

Explain the meaning of keyword 'extern' in a function declaration.

738


Which are low level languages?

648


Explain how can you tell whether a program was compiled using c versus c++?

595


Can you please explain the difference between syntax vs logical error?

705


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1917






Can we assign integer value to char in c?

625


What does %d do?

738


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2279


How can I avoid the abort, retry, fail messages?

673


largest Of three Number using without if condition?

1020


What 'lex' does?

725


Should I learn data structures in c or python?

594


In which layer of the network datastructure format change is done

1445


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

612


What is self-referential structure in c programming?

666