+ 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 😍

16th Jan 2018, 2:01 PM
kashif ahmad
kashif ahmad - avatar
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";
16th Jan 2018, 4:53 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 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;
16th Jan 2018, 5:07 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 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
16th Jan 2018, 5:14 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 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
16th Jan 2018, 4:08 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 5
@kashif Ur welcome.
16th Jan 2018, 5:20 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 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.
16th Jan 2018, 3:02 PM
Roberto Guisarre
Roberto Guisarre - avatar
+ 4
can anyone please explain me infinity loop and one example pls
16th Jan 2018, 4:34 PM
Shivam Raj
Shivam Raj - avatar
+ 2
thank you sir 😊😊...
16th Jan 2018, 3:14 PM
kashif ahmad
kashif ahmad - avatar
+ 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
16th Jan 2018, 4:30 PM
Shivam Raj
Shivam Raj - avatar
+ 2
thanks
16th Jan 2018, 4:58 PM
Shivam Raj
Shivam Raj - avatar
+ 2
@shivam Raj br i think while loop is called infinity loop because we do not know the target in advance.......
16th Jan 2018, 4:58 PM
kashif ahmad
kashif ahmad - avatar
+ 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++)
16th Jan 2018, 5:10 PM
kashif ahmad
kashif ahmad - avatar
+ 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...😊
16th Jan 2018, 5:18 PM
kashif ahmad
kashif ahmad - avatar