Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #36.9K
When to use pointers and when to use references in c++. plz clear my doubt.. thnks in advance |
|
Can anyone clear this doubt..?? First C compiler program compiled on which compiler..??? [QUOTE=soumya.ranjan;1299650]void main() { int x=4,i; i=fun(x=x/4); printf("%d",i); } int fun(int c) { return c/2; } the answer is 1...how??please reply ....[/QUOTE] that prog doesn't give output 1. definitely output will be 0 only. because fun returns 1/2 … |