what will be the output:
main(){char ch;int a=10;printf("%d",ch);}
Answer Posted / sirajuddin
variable ch is of character type and nothing is assigned
to it where as 'a' is of interger type.
In the printf statement we are placing variable 'ch' along
with %d which will display a garbage value.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Write a program that accept anumber in words
What is string constants?
What is sizeof int in c?
Explain can you assign a different address to an array tag?
How can you draw circles in C?
What is an operator?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is else if ladder?
Here is a good puzzle: how do you write a program which produces its own source code as output?
Can the sizeof operator be used to tell the size of an array passed to a function?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
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
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
string reverse using recursion