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
What do you mean by recursion in c?
What is enumerated data type in c?
Explain how do you print only part of a string?
Explain the difference between malloc() and calloc() function?
How to define structures? ·
Differentiate between Macro and ordinary definition.
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is function pointer c?
Are there constructors in c?
Differentiate between calloc and malloc.
What is the best way to store flag values in a program?
How can you check to see whether a symbol is defined?
How was c created?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.