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
What does the error message "DGROUP exceeds 64K" mean?
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
Compare and contrast compilers from interpreters.
Explain why c is faster than c++?
Give basis knowledge of web designing ...
How can I read data from data files with particular formats?
How do I use void main?
Why c is procedure oriented?
What is this pointer in c plus plus?
What is #include in c?
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
What are loops in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Describe the order of precedence with regards to operators in C.
Is null equal to 0 in sql?