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

How do you use a pointer to a function?

1080


What are the features of c language?

1067


What is d'n in c?

1119


How will you write a code for accessing the length of an array without assigning it to another variable?

1044


Is c is a low level language?

1134


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

1162


p*=(++q)++*--p when p=q=1 while(q<=6)

1756


Explain how can type-insensitive macros be created?

988


What is %d used for?

1039


What is restrict keyword in c?

1105


Explain the advantages and disadvantages of macros.

1099


What is volatile variable in c with example?

1043


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

2121


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1118


What is a volatile keyword in c?

1163