Link to home
Start Free TrialLog in
Avatar of ahmei
ahmei

asked on

array

if i want to type a paragraph which must end with symbol %,how can i do it?
can anyone give me a simple example?
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nietod
nietod

Or do you mean you want to output a line with printf() that contains a "%"?  If so use two %'s in the format string like,

printf("This is a string with one Percent sign: %%");

Only one percent sign will be ouput for each pair of percent signs encountered.