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...

what is difference between ++(*p) and (*p)++

Answer Posted / pradeep......

Both are same ..................
reult will not differ in both operations....

#include <stdio.h>
#include <stdlib.h>
//#include <ctype.h>
void main()
{
char *ptr="hello";
clrscr();
//++(*ptr);
(*ptr)++;
printf("%s\n",ptr);
getch();
}


check this code..........

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is getch?

1201


When can a far pointer be used?

1035


What are # preprocessor operator in c?

1121


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

1208


What standard functions are available to manipulate strings?

1158


What is the difference between void main and main in c?

1158


Is there a way to switch on strings?

1091


Explain do array subscripts always start with zero?

1242


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1727


What is difference between main and void main?

1224


Explain the difference between structs and unions in c?

1028


What is the right type to use for boolean values in c? Is there a standard type?

1018


What is actual argument?

1068


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1254


How many levels of indirection in pointers can you have in a single declaration?

1094