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 will be the output:
main(){char ch;int a=10;printf("%d",ch);}

Answer Posted / sirajuddin

variable ch is of character type and nothing is assigned
to it where as 'a' is of interger type.

In the printf statement we are placing variable 'ch' along
with %d which will display a garbage value.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program that accept anumber in words

1761


What is string constants?

1149


What is sizeof int in c?

1062


Explain can you assign a different address to an array tag?

1052


How can you draw circles in C?

1156


What is an operator?

1077


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1254


What is else if ladder?

1022


Here is a good puzzle: how do you write a program which produces its own source code as output?

1105


Can the sizeof operator be used to tell the size of an array passed to a function?

1118


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

10204


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

2044


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1835


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1942


string reverse using recursion

2472