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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 ?    1 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 0 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 ?    1 Yes 0 No
S.srinivasulu
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the diff b/w static and non static variables in C. Give some examples plz. Wipro2
what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);} TCS8
int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why? TCS3
I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.  1
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above Accenture12
what will be the output: main(){char ch;int a=10;printf("%d",ch);} Wipro25
How would you write qsort?  1
Reverse the part of the number which is present from position i to j. Print the new number. eg: num=789876 i=2 j=5 778986  1
class foo { public: static int func(const char*& p) const; }; This is illegal, why? Google6
i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }  2
Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com  2
Which command is more efficient? *(ptr+1) or ptr[1]  3
what is the use of getch() function in C program.. difference b/w getch() and getche()?? Wipro10
disadvantages of realloc ? HCL1
main() { int i = 1; int num[] = {1,2,3,4}; num[i] = i++; printf("%d", num[i]); } what will be the output? } NDS12
What is meant by int fun const(int a, int b) { .... ... }  1
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?  2
WHY DO WE USE A TERMINATOR IN C LANGUAGE?  2
Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage Accenture4
char ch=10;printf("%d",ch);what is the output Accenture11
 
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