• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

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?
0
ahmei
Asked:
ahmei
  • 2
1 Solution
 
nietodCommented:
char *Sentence[] = "This is a sentence that ends in %.";

Is that what you want?
0
 
nietodCommented:
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.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now