Friday, 4 December 2020

In C programming V is used for

In C programming V is used for:

 In C programming V is used for vertical tab. This is a program that demonstrate the use of  \V.

// this is a C program to demonstrate V in c language

 #include <stdio.h>

int main()
{
    printf("Hello \n ");  

    printf("This  \v is  \v a  \v c-language \v program \v to \v demonstrated \v V. ");

    return 0;
}

 OUTPUT:



 Here are few escape characters:

 \b which is used for Backspace in C programming language 

\e   we use this for escape character  in C.

\n 
 This is used for new line character.
 
 \t 
   This is used for Horizontal tab
\\ 
  We use this in c-language  to display the backslash character.

 

No comments:

Post a Comment