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 for the following program?

main()
{
char ch = 'k';
char c;
printf("%c",c);
}

Answers were Sorted based on User's Feedback



what will be the output for the following program? main() { char ch = 'k'; char..

Answer / hussain reddy

garbage value

Is This Answer Correct ?    2 Yes 0 No

what will be the output for the following program? main() { char ch = 'k'; char..

Answer / sudarsan

no out put
bcz
after declaration, inside the memory
1. a location of 1byte will be reserve for ch

and also for c but the value k be store in ch
and nothing in C.
|----|
|k |ch
|----|


|----|
| |c
|----|

Is This Answer Correct ?    3 Yes 1 No

what will be the output for the following program? main() { char ch = 'k'; char..

Answer / akansha

there vl b no result.......

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Interview Questions

what are the stoge class in C and tel the scope and life time of it?

2 Answers   Tech Mahindra,


what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits

2 Answers   Wipro,


How do I use void main?

0 Answers  


what are the different storage classes in c?

0 Answers   TCS,


Differentiate between functions getch() and getche().

0 Answers  


1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)

12 Answers   Eskom, TCS,


What Is The Difference Between Null And Void Pointer?

0 Answers   TCS,


1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.

4 Answers  


Explain the difference between #include "..." And #include <...> In c?

0 Answers  


i got 75% in all semester am i eligible for your company

0 Answers   Infosys,


How to get string length of given string in c?

0 Answers  


what is the maximum limit of row and column of a matrix in c programming. in linux .

4 Answers   NIIT,


Categories