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
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Explain what is the difference between null and nul?
What is dynamic memory allocation?
Are c and c++ the same?
How do I convert a string to all upper or lower case?
Can the “if” function be used in comparing strings?
What is a keyword?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
Can you please explain the difference between syntax vs logical error?
What is the difference between functions abs() and fabs()?
Do you know the difference between malloc() and calloc() function?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is size of union in c?
What is LINKED LIST? How can you access the last element in a linked list?
Explain how do you print only part of a string?