FUNCTIONS Functions are like reusing code that you have written rather writing everything from scratch. For example like in CPP //header file #include<iostream> using namespace std; // main program int main(){ //this will display hello world cout<<"hello world"; return 0; } now with function #include<iostream> using namespace std; //funtion declaration void Hello_World(){} int main(){ //calling funtion Hellow_World(); return 0; } //defining funtion void Hello_World(){ cout<<"hello world"; } here funtion can be divided in 3 parts Declaration: means to tell it's name and it's arguments and with their type. Defination:means to tell what will be inside of it and what will it do. Calling: means to call that function using it's name or provoking it. So by this we are calling the function to print hello world rather writing the code from scratch. For more you can watch below link of YoutTube video : Functions
Why Companies Use Linux: 1. Open Source Freedom Companies can access and modify the source code without licensing restrictions. No vendor lock-in, meaning more control over systems and infrastructure. 2. Security and Stability Linux is less vulnerable to malware and cyberattacks. It can run for years without crashing—ideal for servers and networks. 3. Cost-Efficiency Most Linux distributions are free. Saves thousands in licensing costs compared to Windows or macOS. 4. Scalability and Performance Works efficiently across systems: from embedded devices to massive cloud data centers. Can be fine-tuned for speed and performance. 5. Development-Friendly Rich support for programming languages, tools (Git, Docker, Kubernetes), and automation. Perfect for building and deploying software quickly and reliably. 6. Cloud & Server Dominance Nearly all cloud providers (AWS, Azure, Google Cloud) run Linux-based servers. Powers most web hosting services and critical infrastructure worldwide. ...
Why Companies Use Docker 1. Consistent Environments Docker containers ensure that applications run the same across development, testing, and production. Eliminates the “it works on my machine” problem. 2. Rapid Deployment & Scalability Containers launch in seconds, enabling fast rollouts and updates. Ideal for microservices and cloud-native architectures. 3. Cost Efficiency Multiple containers can run on a single host, reducing infrastructure costs. Lightweight compared to virtual machines. 4. Portability Docker containers can run on any system with Docker installed—cloud, local, or hybrid environments. 5. Security & Isolation Each container is isolated, minimizing the risk of system-wide vulnerabilities. Easier to apply updates and patches without affecting other services. Real-World Use Cases by Companies Company Use Case & Benefits 1.Netflix Uses Docker to deploy thousands of containers daily via its internal platform Titus. Enables massive scalability ...
Comments
Post a Comment