ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
What is difference between the following 2 lines….
 
int temp = (int)(0x00);
int temp = (0x00int);
 Question Submitted By :: Vardhan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is difference between the following 2 lines…. int temp = (int)(0x00); int temp = (0x00int);
Answer
# 1
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 ?    3 Yes 0 No
Mandoos
 
  Re: What is difference between the following 2 lines…. int temp = (int)(0x00); int temp = (0x00int);
Answer
# 2
there is No diff 

Question is absolutely Correct
 
Is This Answer Correct ?    0 Yes 1 No
Akshay
 
 
 
  Re: What is difference between the following 2 lines…. int temp = (int)(0x00); int temp = (0x00int);
Answer
# 3
first one is valid initialization and 
second one syntax error and it will give compilation error
 
Is This Answer Correct ?    6 Yes 0 No
S.srinivasulu
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
How would you print out the data in a binary tree, level by level, starting at the top? Microsoft4
what is the advantage of using SEMAPHORES to ORDINARY VARIABLES??? NSN1
main() { printf(5+"good morning"); printf("%c","abcdefgh"[4]); }the o/p is morning and e...how someone explain  1
15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to? CTS2
program to find the second largest word in a paragraph amongst all words that repeat more thn twice iGate3
i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4  1
What does a run-time "null pointer assignment" error mean?  2
HOW CAN ADD OUR FUNCTION IN LIBRARY.  5
what is memory leak?  3
explain about storage of union elements. Bosch2
write a program to print the all 4digits numbers & whose squares must me even numbers? Virtusa2
what is differnence b/w macro & functions  1
Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass. Microsoft6
Write a program to print this triangle: * ** * **** * ****** * ******** * ********** Don't use printf statements;use two nested loops instead. you will have to use braces around the body of the outer loop if it contains multiple statements.  2
what is the use of #pragma pack, wer it is used? Wipro1
how can i get this by using for loop? * ** * **** * ****** Excel3
how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk. Google3
given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5) TCS5
what is the output of the following code? main() { int I; I=0x10+010+10; printf("x=%x",I); } give detailed reason  3
print the following using nested for loop. 5 4 3 2 1 1 2 3 4 3 2 1 1 2 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5  5
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com