Which command is more efficient?
*(ptr+1) or ptr[1]
Answer Posted / poornima
If ptr is declared as a pointer like int *ptr; *(ptr+1) is
more efficient.
If ptr is declared as an array like int ptr[20]; ptr[1] is
more efficient.
So, it depends upon how we r declaring ptr as a pointer or
as an array.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What does 4d mean in c?
What is 2c dna?
Mention four important string handling functions in c languages .
How does #define work?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
will u please send me the placement papers to my mail???????????????????
Should a function contain a return statement if it does not return a value?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
What is a loop?
Why we use stdio h in c?
How can I insert or delete a line (or record) in the middle of a file?
With the help of using classes, write a program to add two numbers.
Explain the advantages and disadvantages of macros.
What is %d called in c?