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 does the error message "DGROUP exceeds 64K" mean?

729


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2253


Compare and contrast compilers from interpreters.

684


Explain why c is faster than c++?

579


Give basis knowledge of web designing ...

1579






How can I read data from data files with particular formats?

607


How do I use void main?

635


Why c is procedure oriented?

577


What is this pointer in c plus plus?

600


What is #include in c?

603


1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

3984


What are loops in c?

554


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1472


Describe the order of precedence with regards to operators in C.

636


Is null equal to 0 in sql?

657