Question:
How will you print % character?
Answer:
printf(“%%”) will print % Source: CoolInterview.com
cout<<"\%"; Source: CoolInterview.com
Answered by: Ray | Date: 1/19/2008
| Contact Ray
#include<stdio.h> main()
{ printf("%%"); }
~ Source: CoolInterview.com
Answered by: Ameya | Date: 9/11/2008
| Contact Ameya
In c lunguage.... void main(void) { printf("%c",'%'); }
In c++...... int main(void) { cout<<"%"; return(0); }
Source: CoolInterview.com
Answered by: anjanish | Date: 3/20/2010
| Contact anjanish
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|