Thursday, 4 December 2014

What is the Output of the Following Program?

Program: ( Asked in Mind Tree )

#include<stdio.h>
#include<conio.h>
void main( )
{
int i;
printf("Let Us Code in C"-'A'+'B');
          getch( );
}


Output:

et Us Code in C



--> The first letter is Deleted from The Text.

Eg:      printf("Let Us Code in C"-'A'+'E');

The Output is as Follows:
       
              Us Code in C

-> Four Letters Deleted from the text including Spaces.







Thanks for Visiting......

0 comments:

Post a Comment