Monday, July 28, 2014

C objective question

C Aptitude Question  
     Output Of the following code ...

#include<stdio.h>
int main()
  {
   char str[20]="Hello";
   char *const p=str;
*p='M';
 printf("%s",str);
return 0;
}

   The Output is   Mello




No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...