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

Answer Posted / arasu

++(*p)-->after the value is incremented, next line is
executed.
(*p)++-->after execution,it is incremented.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

663


What is %g in c?

612


please explain every phase in the "SDLC" in the dotnet.

2175


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2677


Write a program in c to replace any vowel in a string with z?

684






What is pointer to pointer in c with example?

544


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1122


How arrays can be passed to a user defined function

570


What is the correct declaration of main?

675


Explain what is a const pointer?

634


Are enumerations really portable?

592


Write a program to maintain student’s record. Record should not be available to any unauthorized user. There are three (3) categories of users. Each user has its own type. It depends upon user’s type that which kind of operations user can perform. Their types and options are mentioned below: 1. Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record) 2. Super Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record, Delete Single Record) 3. Guest (Search Record [by Reg. No or Name], View All Records) When first time program runs, it asks to create accounts. Each user type has only 1 account (which means that there can be maximum 3 accounts). In account creation, following options are required: Login Name: <6-10 alphabets long, should be unique> Password: <6-10 alphabets long, should not display characters when user type> Confirm Password: Account Type: Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.

1509


What are categories used for in c?

560


write a c program to find the sum of five entered numbers using an array named number

1617


What are qualifiers and modifiers c?

540