there is two conditions ,
1. while using for loop for printing 1 to 50 no's simulteneous
2. while using printf functios for printing 1 to 50 no's simulteneous with or without using variables
who will take more time for compiling and execution?
explain in details with reason?
Answer / avanish pal
For loop will take more time for compiling and execution
because when we execute the program, flow of control frist
print 1 and after that returns to the condition and than
printed 2 this process repeated 50 times where as in simple
printf it straight print all numbers.
| Is This Answer Correct ? | 2 Yes | 0 No |
hello everybody can we change a the adress of a variabl i mean can i put for exemple for a int *p: &p=6 ?????????
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is the best way to store flag values in a program?
Write a program which calculate sum of several number and input it into an array. Then, the sum of all the number in the array is calculated.
What is %d used for?
When should a far pointer be used?
Find MAXIMUM of three distinct integers using a single C statement
Do you know what are the properties of union in c?
What is local and global variable in c?
When is a null pointer used?
What is the size of structure pointer in c?