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
Why & is used in c?
What is the difference between a function and a method in c?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What are the data types present in c?
What is calloc in c?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is a spanning Tree?
I have seen function declarations that look like this
What is the explanation for prototype function in c?
What is the c value paradox and how is it explained?
What is the difference between malloc() and calloc() function in c language?
What is the difference between exit() and _exit() function?
What is a rvalue?
What is the purpose of the preprocessor directive error?