Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the output of the following code?
main()
{
int I;
I=0x10+010+10;
printf("x=%x",I);
}
give detailed reason

Answer Posted / kartik

Output of this program is 22
reason is :
0x10 is hexadecimal value which is equal to 16 in decimal.
010 is octal value which is equal to 8 in decimal
10 is decimal value

so total is 16+8+10= 34

I value is 34.

Note:The person above me has given the corrst infm however the output is 34.
Try and run the program in C Compiler

Is This Answer Correct ?    12 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between array and linked list in c?

1083


What is the importance of c in your views?

1094


What is bubble sort in c?

1002


Why cant I open a file by its explicit path?

989


Explain how can you tell whether two strings are the same?

971


how many key words availabel in c a) 28 b) 31 c) 32

1011


Write a factorial program using C.

1017


What language is lisp written in?

1165


What are unions in c?

980


Explain how can you determine the size of an allocated portion of memory?

1041


Why is it important to memset a variable, immediately after allocating memory to it ?

2000


write a program to print data of 5 five students with structures?

2005


What is the difference between fread buffer() and fwrite buffer()?

1106


Difference between goto, long jmp() and setjmp()?

1124


What are the advantages of Macro over function?

1927