+ 1
Is is manditory to know about the library of the programming language?
hello every body , i got a thought in my mind that is it necessory to know the library of the relevant program.. thanks in advance 😍
13 Answers
+ 7
@ShivamRaj
a loop which never ends is an infinite loop.
example(c++):
for(i=0; ;i++)
cout<<i;
here u see there is no restriction to i
therefore value of i is printed until u manually close the output screen...
another example:
while(1) //or while(true)
cout<<"Hello";
+ 6
@kashif
it isn't called infinty loop.
while loop can also be used same as for loop is.
example:
int i=0;
while(i<10)
{
cout<<i;
i++;
}
this is same as
for(i=0;i<10;i++)
cout<<i;
+ 6
@Kashif
Who says while never gets an end?
Its upto u if u end it or not!
See if u have such conditions at hand which will never be false only then an infinite loop results...
If you give a condition which will somewhere become false then while loop will END
+ 5
Well to be honest I never gave a thought to this! but if you wish you can have a look at what actually is inside libraries.You will learn something core about the languages
+ 5
@kashif
Ur welcome.
+ 4
A good programming language (worth learning) usually have a huge library full of tested functions and methods designed to cover almost any project requirement, and if you are interested in going deep into a particular one then yeah, it is recommended to learn how that language's library can save you headaches, but after you learn about programming in general, should be easy to look for particular functionalities and implement them. Good luck Kashif.
+ 4
can anyone please explain me infinity loop and one example pls
+ 2
thank you sir 😊😊...
+ 2
you will learn many things like colour text or background colours or make circle in c++ and many more if you know function so go to library and search background colour or circle
+ 2
thanks
+ 2
@shivam Raj
br i think while loop is called infinity loop because we do not know the target in advance.......
+ 2
@infinity
bro how can we end while loop because we know it never gets end and for ending we close the window and all the stuff like that and as a result we lose our written code ( turbo c++)
+ 2
@infinity
okey...... this is way i think i need some practice
well ... thanks bro 😊😊😊 for helping me thanks again for giving me your time...😊