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...

main()
{
int a = 65;
printf(“%d %o %x”,a,a,a);
}

Output
65 101 41

Please explain me.How it is coming like that?

Answer Posted / ruchika thakur

in octal,divide 65 by 8 and collect the remainder.it will
return 101....and in hexadecimal,divide 65 by 16 and again
collect the remainder...you will get 41......



THANKS

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a structure member in c?

1050


What is the easiest sorting method to use?

1234


c program for searching a student details among 10 student details

2139


What is enumerated data type in c?

1124


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1222


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1126


Which is better malloc or calloc?

1155


What is the difference between abs() and fabs() functions?

1175


What are formal parameters?

1172


What does malloc () calloc () realloc () free () do?

1100


What is the use of c language in real life?

1070


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6955


Explain high-order and low-order bytes.

1164


Tell me when is a void pointer used?

1234


What are the advantage of c language?

1105