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 are the disadvantages of a shell structure?

686


What is build process in c?

643


What are categories used for in c?

561


What is a file descriptor in c?

557


What is a pragma?

665






What happens if header file is included twice?

650


What is the process of writing the null pointer?

605


Why are algorithms important in c program?

614


Define recursion in c.

697


What is scope and lifetime of a variable in c?

570


Explain bitwise shift operators?

627


How many data structures are there in c?

612


What is stack in c?

608


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

613


What is the purpose of type declarations?

673