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
Explain Basic concepts of C language?
what are non standard function in c
Explain bitwise shift operators?
What are multidimensional arrays?
How do you write a program which produces its own source code as output?
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
What is the use of a semicolon (;) at the end of every program statement?
Explain how can I pad a string to a known length?
What is static memory allocation?
What is an lvalue?
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...
Is there a built-in function in C that can be used for sorting data?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is bss in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)