what will be the output for the following program?

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does typeof return in c?

633


Explain how do you view the path?

645


Explain how can you avoid including a header more than once?

591


How can I do serial ("comm") port I/O?

681


What is a class c rental property?

601






Is that possible to store 32768 in an int data type variable?

685


Explain what is the benefit of using const for declaring constants?

607


What is sizeof in c?

563


What is "Hungarian Notation"?

631


How is a structure member accessed?

581


all c language question

1862


Why & is used in scanf in c?

613


Do you know what are bitwise shift operators in c programming?

577


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1477


Explain #pragma statements.

600