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 does 2n 4c mean?
What is the difference between a string and an array?
how can I convert a string to a number?
What is data type long in c?
What is the use of static variable in c?
What is a nested formula?
How do I convert a string to all upper or lower case?
What is %d called in c?
Explain do array subscripts always start with zero?
What do you understand by normalization of pointers?
When do we get logical errors?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Describe static function with its usage?