what will be the output:
main(){char ch;int a=10;printf("%d",ch);}

Answer Posted / anu

I think it will not give any error and it will print some
garbage value.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we assign string to char pointer?

583


Which one would you prefer - a macro or a function?

599


Can we compile a program without main() function?

628


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

597


What is array within structure?

581






What is 1f in c?

1833


What does sizeof int return?

588


What is main () in c?

584


What is pointer & why it is used?

600


What are formal parameters?

652


How is a null pointer different from a dangling pointer?

555


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1579


What is 1d array in c?

598


Between macros and functions,which is better to use and why?

1565


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

1657