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
What are the basic data types associated with c?
What are type modifiers in c?
What are the advantages and disadvantages of a heap?
How can I discover how many arguments a function was actually called with?
What are identifiers c?
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
What is function what are the types of function?
How is = symbol different from == symbol in c programming?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What is the difference between strcpy() and memcpy() function in c programming?
Why c is called object oriented language?
Why #include is used in c language?
Is c is a high level language?
what will be maximum number of comparisons when number of elements are given?
What is the difference between declaring a variable by constant keyword and #define ing that variable?