| | |
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 ansi api array asterisks binarysearch calculate centimeter char character cm convert copyanyfile copyimagefile copypdffile cprogramme createcopyoffile createprocess() csyntax directory feet fflush fgets file floatingpointvalidation fork frequency function getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux hacking highest homework i/o inches infiniteloop interest intmain() kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives match meter microsoft mqqueue mysql number oddnumber odf open opendocumentformat openwebfoundation owf pattern pdf performance posix power probleminc program programming pyramidusingturboccodes read recv recvblocked repetition scanf scheduling segmentationfault send single socketprograming socketprogramming stack standard strchr string suggestions systemcall unix urboc user variable voidmain() wab whythiscodecausesegmentationfault win32api windows.h






