Why n++ execute faster than n+1 ?
Answers were Sorted based on User's Feedback
The expression n++ requires a single machine instruction such as INR to carry out the increment operation whereas, n+1 requires more instructions to carry out this operation.
| Is This Answer Correct ? | 1 Yes | 0 No |
The expression n++ requires a single machine instruction such as INR to carry out the increment operation whereas, n+1 requires more instructions to carry out this operation.
| Is This Answer Correct ? | 0 Yes | 0 No |
consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is
#include<stdio.h> int main() { int a[3][3][2]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18}; printf("%d\n",*(*(*a+1)); return 0; } What will be the output of the above question? And how?
how to print this pyramid * * * * * * * * * * * * *
Fifty minutes ago if it was four times as many mints past 3 o clock. how many minutes is it to six o'clock n how....?????
what is the different between data structure and data type?
What is static identifier?
What are the different types of constants?
what is the basis for selection of arrays or pointers as data structure in a program
What is bubble sort technique in c?
write a reverse string to print a stars.(with out using logic) ***** **** *** ** *
What will be the outcome of the following conditional statement if the value of variable s is 10?
What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }