Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs?

Answer Posted / madhu

segmentation fault.U can give that as *(ptr+1)

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does selection sort work in c?

1099


Is fortran still used in 2018?

1094


Can we declare variable anywhere in c?

1034


What is the main difference between calloc () and malloc ()?

1234


What is function pointer c?

1192


Can we access array using pointer in c language?

1129


Write a program to swap two numbers without using a temporary variable?

1181


What is a stream?

1192


Where local variables are stored in c?

1049


What is the purpose of clrscr () printf () and getch ()?

1112


What are the advantages of c language?

1150


What do you mean by invalid pointer arithmetic?

1130


What is meant by keywords in c?

1114


Can we add pointers together?

1115


What is a 'null pointer assignment' error?

1252