edited by
872 views

1 Answer

0 votes
0 votes
As here a is declared as float and a=2.23564

%d specifier is used to print some integer value but here a is declared as float so some garbage value will be printed as output.

Related questions

735
views
2 answers
0 votes
Nitesh Choudhary asked Jun 5, 2017
735 views
which compiler use for gate c output problems?
523
views
1 answers
0 votes
Nitesh Choudhary asked Apr 16, 2017
523 views
There are many questions related to size of pointer and it's also depend on machine so anyone tell me source of reading pointer. (for Gate)
1.8k
views
2 answers
0 votes
radha gogia asked Aug 21, 2015
1,791 views
I went through this article but couldn't get one point where it says that "It only makes a difference if the integer is negative (for signed inputs) ... .com/questions/5208641/difference-between-printing-a-memory-address-using-u-and-d-in-c
574
views
1 answers
0 votes
sushmita asked Mar 27, 2017
574 views
Find the out put of the following C program. main() { char *ptr = "techtud"; char p= (*ptr)++; printf("%s\n",ptr); }the output of the program came as$?$