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

char ch=10;printf("%d",ch);what is the output

Answer Posted / abdur rab

The output will be 10.

char consists of 1 byte = 8 bits

it can hold any value between 0 - 127
an unsigned char can hold any 0 - 256

the asci value 10 is newline,
so if u format it as char using %c
printf ( "\n|%c|", ch ); the 10 is converted to new line

otherwise if u format it to int using %d, it ud print 10

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions to open and close file in c language?

1203


Can you write the algorithm for Queue?

2110


What happens if a header file is included twice?

1037


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

5233


Differentiate between #include<...> and #include '...'

1052


Explain logical errors? Compare with syntax errors.

1071


What does it mean when the linker says that _end is undefined?

1097


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2406


How does pointer work in c?

1124


What is pointer & why it is used?

1113


write a c program for swapping two strings using pointer

2630


what are non standard function in c

1914


What is the use of structure padding in c?

1066


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1260


What is data type long in c?

1076