Basic Syntax Of A C Program: C Tutorial In Hindi #5

CodeWithHarry
24 Apr 201911:04

Summary

TLDRThis video offers an in-depth introduction to C programming, focusing on the fundamental building blocks like tokens, keywords, identifiers, constants, string literals, and symbols. It covers essential concepts such as program structure, syntax, and how to compile and execute code using Visual Studio Code. The presenter explains the importance of semicolons in statement termination and provides tips for writing clean, readable code. The video also highlights the difference between variables and constants, while demonstrating the compilation and execution process in a step-by-step manner for beginners.

Takeaways

  • 💻 The video focuses on explaining basic concepts of C programming language, such as tokens, constants, keywords, and symbols.
  • 📖 C programming involves tokens like keywords, identifiers, constants, string literals, and symbols, which are the basic building blocks.
  • 🔑 Keywords in C programming are reserved words and cannot be used as identifiers like variable names.
  • 📝 The semicolon (`;`) is crucial in C programming, as it is used to terminate statements.
  • ⚙️ The video explains how to write a simple 'Hello World' program in C and break down its components, such as 'printf' and its use of tokens.
  • 🚀 C programs need to be compiled and executed, with tools like Visual Studio Code mentioned for writing and running code.
  • 🧩 Case sensitivity is important in C programming, as variable names are case-sensitive.
  • 🛠 The video discusses using whitespace characters and their importance in formatting and readability, but not in the execution of a C program.
  • 🎯 An introduction to constants and variables in C programming is provided, explaining their usage and differences.
  • 📄 The video offers the option to download notes and a one-pager PDF summarizing the concepts for further study.

Q & A

  • What is the purpose of semicolons in C programming?

    -Semicolons are used to terminate statements in C programming. Each statement must end with a semicolon to indicate the end of the instruction.

  • What are the key components of a C program?

    -The key components of a C program include tokens such as keywords, identifiers, constants, string literals, and symbols. These are the basic building blocks of a C program.

  • What is a 'token' in C programming?

    -A token in C programming is the smallest element of a program that the compiler recognizes. It can be a keyword, identifier, constant, string literal, or symbol.

  • What is the importance of 'printf' in a C program?

    -The 'printf' function is used in C to print output to the screen. It is commonly used to display messages and variables in a program.

  • How is a C program compiled and executed in Visual Studio Code?

    -To compile and execute a C program in Visual Studio Code, the program is written, saved, and then compiled using the appropriate compiler. After successful compilation, the program is executed, and its output is displayed on the screen.

  • What are reserved keywords in C programming?

    -Reserved keywords in C programming are words that have special meanings and cannot be used for any other purpose, such as defining variables. Examples include 'int', 'return', and 'if'.

  • What is an identifier in C programming?

    -An identifier is a name used to identify variables, functions, or other entities in a C program. It can consist of letters, digits, and underscores, but it cannot start with a digit.

  • What is the difference between a variable and a constant in C programming?

    -A variable is a data storage location that can change its value during program execution, while a constant is a fixed value that does not change once it is defined.

  • Why is C considered a case-sensitive programming language?

    -C is case-sensitive, meaning that it distinguishes between uppercase and lowercase letters. For example, 'Variable' and 'variable' would be considered different identifiers.

  • What is the role of white spaces in C programming?

    -White spaces, such as spaces, tabs, and newlines, are used to separate tokens in C programming. They help make the code more readable but are otherwise ignored by the compiler.

Outlines

00:00

🔧 Introduction to C Programming Concepts

The speaker introduces C programming concepts, emphasizing the importance of understanding fundamental building blocks like keywords, constants, string literals, and identifiers. The video highlights how C programming has evolved and discusses the use of various tokens like semicolons for terminating statements. Additionally, the speaker stresses how programming involves understanding key concepts like compiling and execution in environments such as Visual Studio Code.

05:02

🛠️ Overview of Variables, Constants, and Syntax in C

This paragraph delves into variables and constants, explaining how they are defined and used in C. It describes the importance of case sensitivity in programming languages and the syntax rules related to semicolons for statement termination. The speaker also mentions the concept of white spaces and how they are used to make code more readable, emphasizing best practices for managing variable names and constants in the C language.

10:03

📚 Practical Application and Learning Resources

The final paragraph focuses on the practical side of learning C programming. It emphasizes the value of exercises, quizzes, and interactions with course material to solidify understanding. The speaker encourages viewers to engage with additional resources, such as PDFs and course notes, and explains how to access them. The segment concludes by promoting future content and inviting viewers to stay connected through subscriptions and comments.

Mindmap

Keywords

💡C Programming

C Programming is a foundational programming language that is being introduced in the video. It is a general-purpose, procedural language that supports structured programming and is widely used for system and application software. The video uses C programming as an example to explain basic coding concepts like keywords, identifiers, and syntax.

💡Tokens

Tokens in programming refer to the smallest elements of a program that have meaning. In the context of C programming, these include keywords, identifiers, constants, string literals, and symbols. The video emphasizes that tokens are the building blocks of C programs and explains how they are used to create functional code.

💡Keywords

Keywords are reserved words in C programming that have a specific meaning and cannot be used as identifiers (e.g., variable names). They play a vital role in defining the structure and behavior of programs. Examples include 'return' and 'int,' which are used to control program flow and define data types.

💡Identifiers

Identifiers are names given to elements like variables, functions, and arrays in a program. In C programming, identifiers are user-defined names that must follow specific rules, such as starting with a letter or underscore. The video highlights that identifiers are crucial for distinguishing between different entities in code.

💡String Literals

String literals refer to a sequence of characters enclosed in double quotes in C programming. They represent constant strings in a program. The video provides an example of using a string literal in the 'printf' function to output 'Hello World' to the screen, explaining how they are essential in providing readable outputs.

💡Semicolon

In C programming, the semicolon is used to terminate statements. It is a critical part of the syntax, ensuring the program is properly parsed by the compiler. The video mentions that missing a semicolon is a common error that can lead to a program not compiling correctly.

💡Compilation

Compilation refers to the process of converting source code written in a programming language like C into executable machine code. The video explains that once the code is written and properly structured, it must be compiled to identify errors and run the program. The Visual Studio Code IDE is mentioned as a tool to compile C programs.

💡Constant

A constant is a value that cannot be changed once assigned in a program. In C programming, constants can be numeric or string-based. The video explains the difference between variables and constants, emphasizing that constants are useful for storing fixed values that remain the same throughout program execution.

💡Visual Studio Code

Visual Studio Code (VS Code) is an Integrated Development Environment (IDE) mentioned in the video. It is used to write, edit, compile, and debug code in various programming languages, including C. The video encourages using VS Code for its features like split views, debugging tools, and ease of use.

💡Syntax

Syntax refers to the rules and structure of writing code in a programming language. In C programming, this includes using semicolons to end statements, following proper keyword usage, and adhering to the rules for defining variables and functions. The video provides an overview of C syntax, focusing on how errors in syntax can prevent successful program compilation.

Highlights

The program introduces basic concepts of C programming, including keywords, identifiers, constants, string literals, and symbols.

Explanation of how semicolons are used to terminate statements in C programming.

Introduction to compiling programs using Visual Studio Code and the importance of compiling to detect errors.

Discussion of the general-purpose reserved keywords in C programming.

Demonstration of identifying and understanding tokens in a C program, such as keywords, identifiers, and string literals.

Explanation of the importance of whitespace and how it affects readability but not functionality in C programming.

Clear guidance on how to write and compile a simple 'Hello World' program using C programming.

Details about variable naming conventions in C, including case sensitivity and valid identifier rules.

Explanation of how constants differ from variables in C programming and how they are defined.

Introduction to the use of basic symbols and operators such as ampersand (&) and percent (%) in C programming.

How Visual Studio Code provides useful features like split-screen editing, debugging, and syntax highlighting for efficient coding.

Discussion of return values in C, specifically the role of returning 0 to indicate successful program execution.

Explanation of the process to compile and execute a program in Visual Studio Code and check for errors.

Encouragement for users to subscribe to the channel and follow along with the course by using provided notes and PDF summaries.

The video emphasizes the importance of building a strong foundation in the basics of C programming for further development.

Transcripts

play00:00

guess II program suka feel open atelic

play00:01

in our disbeliever Joe be partaking of

play00:03

openness see program corner see search

play00:06

is a so much spine and as a result logic

play00:08

Cathedral seminar pygar it's video miss

play00:10

Madonna

play00:12

so here's a bit of leverage OPC

play00:15

programming cabaret Masika we are the

play00:16

history the installation that I have a

play00:18

kajori important what is he licking

play00:19

awesome start carrying a vous basic

play00:22

building blocks GC program kuba not

play00:24

there to see program open our nucleus of

play00:26

say Bellingham Logan acoustics Liga I

play00:28

would text house macaques Kathy was

play00:30

barium lugia bird but cutting it told us

play00:32

our time spent getting it me up local

play00:34

opposite arm up in the visual studio

play00:35

code ID Mahalo Tucker may look over the

play00:38

hockey Joe program I'm loaning Licata

play00:39

was peccatis comma Club kata it's aptly

play00:42

understanding but a gear up local so

play00:44

much mega he see program macaques kulick

play00:46

he's at the air so guys XC program

play00:48

constants identifier string literals key

play00:51

words or symbols similar burn out their

play00:53

home look in keys oh goodness this video

play00:56

Mickey khaki scout the a or C

play00:57

programming language job beneath he or

play00:59

evolve we over the period of time

play01:01

totally subject easier who is the Cuban

play01:04

I agree so the sub simple have a bodkin

play01:05

armored token skip C major program both

play01:08

Amara whoa a individual tokens and will

play01:10

given out hacker may printf hello word

play01:13

Co

play01:13

tokens petrolatum Tamara program put

play01:16

aside Nicholas Ikea probably screen

play01:17

pura-vida Grand Lake in a ski the

play01:19

presentation code Chuck illegally a

play01:21

homologous program kuch is tarah licked

play01:23

an icky compact formula clean new like

play01:25

skip car detain her statement car

play01:27

termination C programming mix semicolon

play01:30

given out I

play01:31

let's upload a jokester coffee Sonya key

play01:33

semicolon bulgur semicolon Joseph

play01:35

similar a semicolon problem academic

play01:37

aracataca wire

play01:38

so there's semicolon cuchini each

play01:40

statement could terminate connect less

play01:42

thermal key another year semicolon

play01:44

abdominal area up co-op cup program and

play01:46

heard a couple compiled on October tiger

play01:48

by Mac which sneakers are compiling up

play01:50

in the hot rod recording or aapke bulaga

play01:51

Kim which sin he hope are I am my

play01:53

program to compiling course at the mess

play01:55

program to executable name bonus at the

play01:57

mayor up K is code cos orphan named

play01:59

Ernest attacking imagine any Malu me a

play02:01

leak aware self exam i : k masonic

play02:04

emerges a so as mayor bob local legend a

play02:06

charm up the visual studio code a vegan

play02:08

Mohammed look at the conga Gimli program

play02:10

Lakatos McCarty's county the basic

play02:12

building block sales program kabuki ah T

play02:14

so this Yamaha open visual studio code

play02:16

members uploaded a request karma Upjohn

play02:18

up Luca parmitano's computed the hands

play02:20

applause sunnah or jesse's a Makarov

play02:22

progressive acid digna it could on

play02:24

uploads him a push namaha up lupus

play02:26

course key but one pager PDF any key egg

play02:29

please keep media of Chinese summary

play02:31

guitar P yeah we capture I think he may

play02:32

upload notes supply gonna start car do

play02:35

in videos Kazan much a comment section

play02:37

with the room button or other up Laguna

play02:38

car key ha hum hae notes harmony one

play02:41

pager PDF his course Kiba does aroun we

play02:43

upload Lily Ganga is helium moochick

play02:45

comment section was the rule bizarre

play02:46

connection a Chinese sub look the robot

play02:48

on an hie tablet on outta here table you

play02:51

batana Alberta saga' blow they can ma a

play02:53

visual studio code can the upper map now

play02:55

who put on a program called luma Joachim

play02:56

an akuna what our program with the exact

play02:58

area he made his screen but he basic

play03:00

structure municipal dumas some lattice

play03:02

see program car up on look taking a step

play03:04

building blocks and Nikita cool ahead

play03:05

just a key India has key body a joker

play03:07

Libre said okay I'm into an app logo but

play03:10

Aida like a domain shop there walk

play03:12

yahiro's cook Yaga they won't submissive

play03:13

map loco but um I sprayed over guy sexy

play03:15

program token scheme of the slippin

play03:17

outta Gemma to Kinski but condos Camilla

play03:20

both SC program good banana one he would

play03:22

to collide UGC program Co Bernardo skip

play03:24

basic building blocks Jessica I'm Logan

play03:26

a program liquored up in official video

play03:27

just make a home hello word print color

play03:29

the screen bay it's cool individual

play03:31

tokens permit although you could guess

play03:33

and Aquila any key many printf koala

play03:34

Cordia yes symbol a locker diem and he

play03:37

his string literal and occurred after

play03:38

skipper Sam you cannot not even a locker

play03:40

diem escucha said because of Tata W had

play03:42

Jess a expected Thomason on career I

play03:44

sitting up technically hello what is the

play03:46

brain cardia to manic escrow individual

play03:48

tokens methodius so it took me a

play03:50

keyboard oppa yeah identifier going in

play03:52

constant doing our spring later lower

play03:54

yes'm Beluga keyword cotton subsidy my

play03:56

keyword ki baat karta keyword reserved

play03:59

word so 10 C programming language Cantor

play04:01

C programming language can there but

play04:03

this general-purpose keyboard oath and

play04:05

yogi up opening screen with a greater a

play04:07

keyword c programming language more than

play04:09

general-purpose keywords you attain or

play04:11

he reserved word south any key in Burtka

play04:13

up constrained even a septic will be

play04:15

identifying even as active variable even

play04:17

acetate

play04:17

yeah keyword c programming language

play04:20

okay when Jessica returned could they

play04:22

connect a keyword up in Kodaikanal a

play04:24

keyword a caramel account away keyword a

play04:26

little reserved words info up Logan the

play04:29

Hinkins a testament of new programming

play04:30

language man his CV identifier go banana

play04:32

makisi be constrained a variable can

play04:34

numb banana may you see us at a but

play04:36

cutting he identified skeleton they were

play04:38

identifiers some are a Kissimmee

play04:40

variable Kannamma was a big zip function

play04:42

canal most of the histogram was quadrant

play04:43

if I cut something that said identified

play04:46

key to 30 a it's killing me Alex a video

play04:48

named bananas are the symbols it is the

play04:49

Kobe nom jokey advocacy variable in a

play04:52

function called initiative just a gap

play04:53

kima me up corrosion Shubham FL Vikrant

play04:57

to be economist supercar team cetera hum

play04:59

look up in a function call variable qu

play05:02

all become two entities but I need is a

play05:04

constant forget I was compa cart a head

play05:06

identifier say AB identifier make

play05:09

capital a to capital said small a to

play05:11

small said or Ziggy's or underscore

play05:13

orden letters or numbers viewers up

play05:15

there so C can now cut the variables

play05:17

konami animal video making a bus

play05:19

obligate the unlucky see punctuation

play05:21

characters koala on a cockeyed $3 person

play05:24

d identifier ski thought P allowed neo

play05:27

that table kupatana Chama do you see

play05:29

awake case sensitive programming

play05:31

language a yeah Nakia gotta make AC

play05:32

variable cannot get uncapped ledge on

play05:34

escape addict do say very broken a mess

play05:36

monitor up don't the Voodoo no another

play05:37

log manage I'm gay escape pod Hamada C

play05:39

programming language may only use cakes

play05:41

semicolons disagreement up loco but I at

play05:43

the belly semicolon statement would

play05:44

terminate connect Li use scalar that a

play05:46

menace for individual tokens for the

play05:48

tour the elegant hum lube us Co a Klein

play05:50

cook compact when I got everything

play05:52

Humphrey program code readable when I

play05:53

can everything or hum is come manually

play05:55

update the mark and the summer stinky

play05:57

constituency on or home logo compact car

play06:00

key a Klein CO and eiki-sama Kentucky to

play06:03

liner who's calm low X single line but

play06:05

up there

play06:05

yeah nakida many white spaces or new

play06:07

lines extra at key know some men every

play06:09

hot idea as I - Lydia he made a program

play06:11

J Woodley WJ who see the sauce or tamari

play06:13

program make which constant is Aggies 0y

play06:15

a constant hum animal a timer constant

play06:18

kesab analysis they will be map look

play06:19

about our variable constant material

play06:21

difference of the EB bitanga OC Cassidy

play06:23

to hell over tying a string literal

play06:25

thigh and cake spring tea or manager

play06:27

says Pahokee habla biggie care I care or

play06:29

ski bothers me

play06:30

Tina's key sizer although Sega's idea

play06:33

Madhukar IKEA valuable a kiss turkey is

play06:35

kamagra ssamjang have look one thing at

play06:38

that time somebody asked about and what

play06:40

is symbols are things you Sam and

play06:41

American public towns can have for skip

play06:44

ad mundum upon leave the dump percent D

play06:46

to disclose my ampersand elector Malo

play06:48

the ampersand Mirek symbol oh yeah oh

play06:50

yes sorry Gazzara symbol so then again

play06:52

come on our program but now I key word

play06:54

identifier constant string literal or

play06:57

symbol similar applause okay note down

play06:59

because I think key word identifier

play07:01

constant string literal or symbol you

play07:05

see you Sokka hablok note down cannot

play07:06

retain seek it but this general purpose

play07:08

reserved keyword school - boa up locally

play07:11

Abby scrimp on Nicaraguan up Luis

play07:12

cocaine public's up there look it up

play07:14

local in Sequoia the REC Nikki's orogeny

play07:16

up Logan kebap us again fr cars

play07:17

extending inapplicable town a cheeky

play07:19

Khan Khan Seb okie words and Yuki C

play07:21

programming we deserve death applique

play07:22

program when I wish temporary files when

play07:24

I think Joakim in a palooka Yeti

play07:25

cunningly when I dig ec program Cassie

play07:27

come cut the mounts up Kobe up or

play07:28

deleted the thumb take it man with some

play07:30

nails my jaw thing upon yourself exe

play07:32

will delete cut off knee of a percent

play07:34

program go compiler key or scooter

play07:36

uncurling get a core cheese you have a

play07:37

pedometer will you a key up lock up the

play07:39

program invites pieces

play07:40

kidney we'd also find someone lumia for

play07:41

coat of white space dolls at home often

play07:43

a token skip each me

play07:44

so gopher at me putting I made a program

play07:46

successfully combined about secret

play07:47

sucker me up with the space doll do or

play07:49

yeah Purdue monomeric with the spaced

play07:51

although or escape others could and guru

play07:53

they successfully compiled which I gotta

play07:54

execute Bo jaga Sousa Kiev look every

play07:56

the exact thing you - Co compile and

play07:58

execute could be a it Visual Studio code

play08:00

car feature up Lou Caputo mono my main

play08:02

dots you're a Nazi dunno side-by-side

play08:03

cool notch a table Louie a jobber

play08:05

danesco and Johanna you split editor of

play08:08

Allah but an S copy use cursive thing or

play08:10

the sake screen your DOMA splitter

play08:11

Jackie the yakan dependently telega it

play08:13

scrub zoom in zoom out cut something

play08:15

around say or you can depend initially I

play08:17

am / or up join don't know key code code

play08:19

debugger 16 they accept a geeky ah

play08:21

cheese Kathy marecus code me so upload

play08:24

yeah birds um multiple editor schools

play08:26

out there a keys window way Tommy Mike I

play08:28

don't like it ID custom all gonna change

play08:30

I need your body come with here

play08:32

I mean of the program with normal state

play08:33

malama

play08:34

a keys mentioned on our County come

play08:36

sircome ACO whitespace character on a

play08:37

key token skip each made you second my

play08:39

upper return 0 as Alec do tomorrow's

play08:41

your program

play08:42

imagine if I return alligator zero Allah

play08:43

guess Leo an arthropod I got me up

play08:45

Lakota katha is ago is the arid through

play08:47

Korea to come sircome

play08:48

a quite space character notching a

play08:49

return or scoubidou value return what he

play08:51

was cabbage my psyche hung on a program

play08:53

comes a come he took identify cur

play08:55

a return 0 AKA return or 0 return 0 a

play08:58

logon again so yes our each is a yoga

play09:00

practice configured or as Jesus I'm

play09:01

imagining he licking me I got thrown

play09:03

here be a basic idea or he Johanna basic

play09:06

building blocks within C program

play09:07

cooperative be so much get hungry on

play09:08

every videos both are important oh well

play09:10

I'm up and my variables or constants

play09:11

c'mon but somewhere Oh datatype ski

play09:13

bottom bottom of aha same means see

play09:15

start on a value loosely come on miss

play09:16

Watkin animal videos easily up a big

play09:18

Heavy's playlist go save gotta get a

play09:20

click import bookmarks and for subscribe

play09:23

curly a channel co jesse i prefer

play09:25

charges cause some algebra Collegiate

play09:26

Hockey course go Mina

play09:27

description women a course calling the

play09:29

our pura once the upload schools could

play09:31

have something so here's a shaker Tonchi

play09:33

up locus so much mayor guys pretty over

play09:35

sub quiz or up local Mazar OSC toodles

play09:37

cake horseman which in each a comment

play09:38

with the room but Alina he gets a lotta

play09:39

up local Year video boosting a saucer

play09:42

other Futurama up loopy denotes a

play09:43

one-pager PDF leg around litter up local

play09:46

mctavey the promoter uploading

play09:47

Nietzsche's subscribe get bell like I'm

play09:49

go ahead Kia we're together upload a

play09:50

subscriber cable I can wear it Nikki I

play09:52

were to map the case of watch mama made

play09:53

in node soldier one billet PDF my banana

play09:55

Oh Scania mazaru like video Nichkhun

play09:57

water-ski no deviation up Laconia pious

play09:59

easily upload one pressure PDF for

play10:01

minute notes for miss courteously

play10:02

subscribe Kirk a bell like I'm

play10:04

conservative Alina yup locally important

play10:06

there because I can upload my video

play10:08

person died or appropiate Yankee master

play10:09

on to your quality videos when I want to

play10:11

Nietzsche our plugs sheer but in the

play10:13

back key is video co-op with those sort

play10:15

of much I hear 30 can I just see videos

play10:17

all over the poaching your or as a

play10:18

result man or videos up local Eastern

play10:21

Anjali Khanna ponga flood killing guys

play10:22

is video midnight

play10:23

Mohammad Khatami uploading this video a

play10:25

like those elucidate yoga so maintain

play10:27

eyes of that live video me and leave it

play10:29

deals to an evil sperm look basic price

play10:30

start cutting up look exercises do love

play10:32

quizzes doing up locus how to interact

play10:34

come on Authority course cook both

play10:35

interesting my banana belong you see lee

play10:37

melt away up louis a are never leave

play10:39

videos me was this video where comes up

play10:41

the Ruthie dinner so thank you so much

play10:43

guys for watching this video and I'll

play10:44

see you next time

play10:48

[Music]

Rate This

5.0 / 5 (0 votes)

Étiquettes Connexes
C programmingcoding basicssyntax rulestokens explainedprogramming guidebeginner codingcoding tutorialsVisual Studiodebugging tipsprogram structure
Besoin d'un résumé en anglais ?