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 |
What is information technology.
How does free() know explain how much memory to release?
write a progam to display the factors of a given number and disply how many prime numbers are there?
Differentiate call by value and call by reference?
What is the hardest programming language?
what is default constructor?
what is data structure?
Is c high or low level?
How is a structure member accessed?
Write a program to print factorial of given number without using recursion?
What does 2n 4c mean?
What is meant by high-order and low-order bytes?