difference between i++* and *++i

Answer Posted / ravi

i++* is meaningless , do u want to ask *++i and *i++ diff ?

*++i --> it increments the i then access the value poiting
by i

*i++ --> it first access the value pointed by i , then
increment the i ( increments pointer , not value)

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why we wont use '&' sing in aceesing the string using scanf

1777


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

1722


What is the size of enum in c?

612


What is C language ?

1523


How are variables declared in c?

597






What are pointers in C? Give an example where to illustrate their significance.

746


Explain the properties of union. What is the size of a union variable

713


Explain what are the different data types in c?

751


Do you know the use of 'auto' keyword?

653


Define circular linked list.

567


Write a program on swapping (100, 50)

634


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1255


How can I call fortran?

640


swap 2 numbers without using third variable?

656


Is swift based on c?

636