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 |
Why does notstrcat(string, "!");Work?
Explain #pragma in C.
can we write a c program with out using main
Explain the difference between the local variable and global variable in c?
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
what is c language?
What are the advantages and disadvantages of a heap?
Can we increase size of array in c?
What is structure packing in c?
application attempts to perform an operation?
write a c program that if the given number is prime, and their rearrangement(permute) of that number is also prime. Ex: Input is "197" is prime Output: 791,917,179 is also prime. Please any one tell me tha code for that
void main() { int i=5; printf("%d",i+++++i); }