Friday, 2 November 2012

ESCAPE SEQUANCE

# An escape sequances starts with a backslash and followed by 1 or more special characters as follows:

=> \n -for newline
=> \t -for horizontal tab
=> \a -for sound alert
=> \\ -for notes(will not effect the program)
=> \" -double coute.use to print double quote character

EXAMPLE:
#include<stdio.h>
void main(void)
{
printf("\a\a\Hi! Welcome to Programming..:)\n");
printf("Thanks for using C++\a\n")
 

No comments:

Post a Comment