| | |
adding from 0 to a number that will be entered by the user .
Thread Solved |
•
•
•
•
%i and %d are equivalent. both of them specify the format for a signed decimal integer, and either are acceptable to use
for "scanf()", the %d and %i are subtly different ... %d requires a decimal (base 10) integer input, while %i assumes decimal by default, but will also read number as octal if it is prefixed by '0', or hexadecimal if prefixed by '0x' or '0X'
Last edited by jephthah; Jul 3rd, 2009 at 12:06 am.
•
•
Join Date: Nov 2008
Posts: 90
Reputation:
Solved Threads: 8
the meaning of
is same as the
C Syntax (Toggle Plain Text)
sum+=i;
C Syntax (Toggle Plain Text)
sum=sum+i;
![]() |
Similar Threads
- Displaying Prime Number (C#)
- How to sum cubes and squares of the number input by the user (C++)
- counting number of letters in the strings entered by the user (C++)
- help in function to return the number of items greater than certain number (C++)
- Please help! Sudoku in C (C)
- Trying To Find The Square Root Of Each Number Of A Array (C++)
- Loop program help (C++)
- Applet Help (Java)
- Mortgage Program help (Java)
Other Threads in the C Forum
- Previous Thread: help to work on structures..
- Next Thread: extract multidigits from a char* (substring)
| Thread Tools | Search this Thread |
* adobe api array arrays binarysearch calculate centimeter char cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux hacking hardware highest homework i/o ide inches incrementoperators intmain() iso km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat opensource openwebfoundation pattern pdf performance pointer posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition scanf scheduling segmentationfault send shape single socketprograming socketprogramming stack standard strchr string suggestions test unix urboc user variable voidmain() whythiscodecausesegmentationfault win32api windows.h






