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

Which command is more efficient?
*(ptr+1) or ptr[1]

Answer Posted / purna

*(ptr+1);
Internally the same operation is performed with the next
one also.
it takes less time.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Basic concepts of C language?

1138


what are non standard function in c

1899


Explain bitwise shift operators?

1229


What are multidimensional arrays?

1107


How do you write a program which produces its own source code as output?

1101


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

1135


What is the use of a semicolon (;) at the end of every program statement?

1479


Explain how can I pad a string to a known length?

1181


What is static memory allocation?

1159


What is an lvalue?

1053


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1911


Is there a built-in function in C that can be used for sorting data?

1228


Write the test cases for checking a variable having value in range -10.0 to +10.0?

2308


What is bss in c?

1083


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1940