Skip to main content

SIMPLE HELLO WORLD EXAMPLE IN C LANGUAGE

1. Simple Hello world example
#include<stdio.h> // to include library "stdio.h" 
int main()                    // every c program starts with main function
{
 printf("Hello World"); // printf() function prints whatever is placed within ' "  " '
 return 0;
}

Output: Hello World

Description:
1.First line "#include<stdio.h>" indicates that we want to use stdio.h library in our code.
2.int main() - all code is written in this block. "int" return type is integer.
3.printf("Hello World"); - to write a "hello world" message on console
How to run and execute: 
Step 1 : Type this code in your turbo c compiler and save it with appropriate file name (ex: helloWorld.c).
Step 2 :Click compile -> compile
Step 3 :Click run ->run
Step 4 :Press alt+x to exit from turbo C and see the output.
Step 5 :To continue with your code type "tc" again.
In marathi language / рдорд░ाрдаीрдд рд╡рд░्рдгрди
1.рддुрдордЪ्рдпा turbo c рдХॉрдо्рдкिрд▓ेрд░ рдордз्рдпे рд╣ा рдХोрдб рд▓िрд╣ा .
2.compile -> compile рд╡рд░ рдХ्рд▓िрдХ рдХрд░ा.
3.run - > run рд╡рд░ рдХ्рд▓िрдХ рдХрд░ा.
4.рдЙрдд्рддрд░ рд╕ाрдаी alt + x type рдХрд░ा. рдордЧ рдкोрдЗрди्рддेрд░ turbo c рдЪ्рдпा рдмाрд╣ेрд░ рдпेрдгाрд░. рдХॉрди्рд╕ोрд▓े рд╡рд░ рддुрдо्рд╣ाрд▓ा рдЙрдд्рддрд░ рджिрд╕ेрд▓.
5.рдкрд░рдд turbo c рд╡рд░ рдпेрдг्рдпा рдХрд░िрддा рдХॉрди्рд╕ोрд▓े рд╡рд░ "tc" рд▓िрд╣ा.
Code description / рдХोрдб рдЪा рд╡рд░्рдгрди 
рдкрд╣िрд▓ी рдУрд│ : #include<stdio.h> - рдЖрдкрд▓्рдпाрд▓ा stdio.h рд╣्рдпा library рдЪा рдХोрдб рд╡ाрдкрд░ाрдпрдЪा рдЕрд╕рд▓्рдпा рдоुрд▓े рд╣ि рдкрд╣िрд▓ी рдУрд│ .
рджुрд╕рд░ी рдУрд│ :int main () - рдк्рд░рдд्рдпेрдХ рдХोрдб рдордз्рдпे рд╣ा рдоुрдЦ्рдп рдм्рд▓ोрдХ्рдХ. рд╕рдЧрд│ा рдоुрдЦ्рдп рдХोрдб рд╣्рдпा рдм्рд▓ोрдХ्рдХ рдордз्рдпेрдЪ рд▓िрд╣िрд▓ा рдЬाрддो.
рддिрд╕рд░ी рдУрд│: printf() - рд╣ा function console рд╡рд░ рд▓िрд╣िрдг्рдпा рд╕ाрдаी рд╡ाрдкрд░рд▓ा рдЬाрддो.

Comments

Popular posts from this blog

IOT : GARDEN WATER SPRINKLER SYSTEM

IoT projects have gained immense popularity due to their ability to leverage the power of interconnected devices and data to create innovative solutions across various domains. IoT projects involve integrating sensors, actuators, and communication technologies to enable the seamless exchange of data between physical devices and the internet. These projects range from simple DIY experiments to complex industrial applications, each offering unique opportunities to transform our lives and improve efficiency. Whether it's creating a smart home automation system, monitoring environmental conditions, optimizing energy usage, or developing intelligent transportation systems, applications of IoT open up a world of possibilities for innovation and connectivity. By harnessing the potential of IoT, we can build intelligent and interconnected systems that revolutionize industries, enhance daily life, and pave the way for a more efficient and sustainable future. In this project we will be using...

POWER BI - THE ARCHITECTURE

Power BI Architecture: A Comprehensive Guide to Building Effective Data Analytics Solutions     Understanding Power BI Architecture: Power BI's architecture comprises four main components, each playing a pivotal role in the data analytics process: Data Sources:   Power BI connects to a wide range of data sources, including databases, cloud services, Excel files, web services, and more. This versatility enables organizations to consolidate their data from various systems into a single dashboard. Data Transformation:   Once the data is sourced, it undergoes transformation and cleaning processes to make it suitable for analysis. Power BI's Power Query Editor provides a user-friendly interface to manipulate, filter, and shape data according to specific requirements. Data Model:   The heart of Power BI's architecture lies in its data model, whic...

TOUCH PLATE BASED DOOR BELL

Title:  Touch plate based door bell  Circuit:  Components: IC 555 Resistors: 1 M, 100k, 330 ohms Transistor: BC547  PN2222A Capacitor: 10n 1 Copper plate : as touch plate. A 6v battery An LED / Ic UM66 Description: This is the simple circuit for touch plate based security system. In this project what basically done is, circuit detects stray voltages produced by mains voltage and electrostatic built  up in the room.If sufficient static voltage is detected by the plate then chip will charge up. Transistor BC 547 or PN2222A is used basically to increase the sensitivity.In place of led just connect IC um 66(melody IC). Applications: In homes, of course. This can be specially used in places like hospitals, when patients need to call doctor by himself.