#16 C Variable Scope | C Programming For Beginners

  Рет қаралды 64,053

Programiz

Programiz

Күн бұрын

Пікірлер: 108
@programizstudios
@programizstudios 2 жыл бұрын
🔥Finding it Damn Hard to Understand C Programming? Learn to code-the right way-with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT! Try Programiz PRO for Free: bit.ly/master-c-programming
@MohammedShafeekSA
@MohammedShafeekSA 2 жыл бұрын
Hi, there is an error in the above video. When you were showing the example of Global variable, you showed a code snippet and told that this code will throw error. But actually that code will not throw any error and you have printed the value of 'result' inside the function which will work even when the variable is not declared global.
@metaMorph21
@metaMorph21 Жыл бұрын
Maybe she meant the snippet where the printf wasin line 11 to throw the error🥲
@hgfggjjgv
@hgfggjjgv Жыл бұрын
Yes u are correct it will not generate any errors
@safwatsohail-t2u
@safwatsohail-t2u Жыл бұрын
no it will declare error
@testingsomething5280
@testingsomething5280 3 ай бұрын
@@safwatsohail-t2u I just rewrote it verbatim, there was no error the code ran perfectly fine
@BenvelMusic
@BenvelMusic 2 жыл бұрын
Actually with your explanations I find C much simpler than I thought
@user-nt4nm4fb3u
@user-nt4nm4fb3u 8 ай бұрын
I'm getting C programming more easily than i thought beforehand to start this tutorial series. Programiz is really doing a great job. Hats off for the effort you put into to make these learning resources available for every enthusiastic learners of programming.
@Prof-Reza
@Prof-Reza Жыл бұрын
watch this video to learn about scope: kzbin.info/www/bejne/n3-Vn4Gfe6qNi6M
@onic9623
@onic9623 Жыл бұрын
Option B : discount
@abdullaywourmonychol1626
@abdullaywourmonychol1626 2 жыл бұрын
May you please make a video about the File in C Programming.
@pulkitgupta8344
@pulkitgupta8344 Жыл бұрын
With your videos, I am able to understand C easily. Thank you for these videos.
@programizstudios
@programizstudios 2 жыл бұрын
Q. In the following code, which variable is a global variable? #include double discount = 33.3; int computeFee(int time) { double discountAmount; double fee = 33600.0; } A. time B. discount C. fee D. discountAmount
@ajwadshah786
@ajwadshah786 2 жыл бұрын
discountAmount
@u.bhanuprasadbhanu4407
@u.bhanuprasadbhanu4407 2 жыл бұрын
ʙ
@thilagawathis3997
@thilagawathis3997 2 жыл бұрын
Discount
@teofengyii9913
@teofengyii9913 2 жыл бұрын
B discount
@vinaykumarvinaykumar2006
@vinaykumarvinaykumar2006 2 жыл бұрын
My answer is B
@keneekenee5706
@keneekenee5706 Жыл бұрын
I like your sense of dressing, you always look smart. And thank you for the lessons
@balashebjadhav977
@balashebjadhav977 Жыл бұрын
Answer is B) discount
@kanuprecious4743
@kanuprecious4743 Жыл бұрын
Thank you so much . You’ve made C easy ❤
@The-Girl-Who-Codes
@The-Girl-Who-Codes Жыл бұрын
You made a mistake 3 minutes 39 seconds. The code was will not output an error. I tried it and it worked. Even before globally declaring it
@viralfoodies1886
@viralfoodies1886 2 жыл бұрын
option : B
@JoasBatumbya
@JoasBatumbya 3 ай бұрын
Thanks alot for your videos
@light-warrior
@light-warrior 7 ай бұрын
Option B is the correct answer.
@sibonginkosiphiri6269
@sibonginkosiphiri6269 11 ай бұрын
B is the answer
@sreedampuru4154
@sreedampuru4154 9 ай бұрын
Answer is option B
@countrysideshowyaigrock4689
@countrysideshowyaigrock4689 Жыл бұрын
Great lesson!
@luigieparra6016
@luigieparra6016 Жыл бұрын
The mobile app is awesome, ty.
@aboutouruniverse3834
@aboutouruniverse3834 Жыл бұрын
Quiz: B
@manigoutham8256
@manigoutham8256 9 ай бұрын
Quiz:option B
@PraveenPraveen-us3rp
@PraveenPraveen-us3rp Жыл бұрын
Options B
@mohammadabdullahaalforhad1375
@mohammadabdullahaalforhad1375 8 ай бұрын
thanks a lot.
@yogithabale
@yogithabale 2 ай бұрын
opt B
@albertamenyah3019
@albertamenyah3019 Жыл бұрын
The answer is B.
@my_talks01
@my_talks01 2 жыл бұрын
#include void addNumbers(int num1,int num2){ int result = num1 + num2; printf("result=%d",result); } int main(){ addNumbers(5,6); return 0; } // you say this code generate an error , in the beginning of global variable scope , but its not generating any error, little confusing mam 🥺🥺🥺
@venkateshdhanorkar3347
@venkateshdhanorkar3347 2 жыл бұрын
See it once again, in the video, result variable was defined in addNumbers function and in main function it was printed, so it was showing an error.
@sirishasaragadam7603
@sirishasaragadam7603 2 жыл бұрын
thank you mam
@alishan021
@alishan021 Жыл бұрын
answer - discount
@hemangibansal4181
@hemangibansal4181 2 жыл бұрын
B) Discount
@dileepcheekala2617
@dileepcheekala2617 Жыл бұрын
u r butifl i ❤ u mam
@kangtheconqueror3639
@kangtheconqueror3639 2 жыл бұрын
B
@tae_minagustd9964
@tae_minagustd9964 2 жыл бұрын
B.discount
@kirusanth
@kirusanth 2 жыл бұрын
Waiting for next video
@novervain9858
@novervain9858 2 жыл бұрын
me too
@originsofgamers-e8786
@originsofgamers-e8786 2 жыл бұрын
go to the website for the next vid bro
@ebenezeradesimi6228
@ebenezeradesimi6228 2 жыл бұрын
#include int main() { printf("I love your videos they as beautiful as you 💓 "); int observation; printf("Enter observation:"); scanf("%d", &observation); if(observation==1) { printf("Ma'am at 3:44 I think there's a mix up as I beg to differ that the code will run, Continue the great work ma"); } else { printf("You still remain beautiful😘😘"); } return 0; }
@lupitacorreasalinas
@lupitacorreasalinas 7 сағат бұрын
answre is b
@firedragonmangaming2410
@firedragonmangaming2410 2 жыл бұрын
Answer: B
@renuga.k7473
@renuga.k7473 2 жыл бұрын
discount
@murikishivapriya5320
@murikishivapriya5320 2 жыл бұрын
When is your next video??
@kanuprecious4743
@kanuprecious4743 Жыл бұрын
B.. discount
@adarshyadav1423
@adarshyadav1423 2 жыл бұрын
2 discount
@arissaanna
@arissaanna 11 ай бұрын
the discount
@vinay866
@vinay866 2 жыл бұрын
First❤
@omaeshebl4732
@omaeshebl4732 Жыл бұрын
👍👍
@V1ctorinos
@V1ctorinos Ай бұрын
Answer is B
@emmanuelarthur3081
@emmanuelarthur3081 Жыл бұрын
Great video ❤
@VenkataNarisetty-s7m
@VenkataNarisetty-s7m Ай бұрын
Fee
@navraj8398
@navraj8398 2 жыл бұрын
discout
@AmreshKumar-zq3zo
@AmreshKumar-zq3zo 2 жыл бұрын
b. discount
@imrannazari8642
@imrannazari8642 Жыл бұрын
b
@sawewfelipe7480
@sawewfelipe7480 3 ай бұрын
the answer is B, discount.
@JoasBatumbya
@JoasBatumbya 3 ай бұрын
Double discout
@atulanand1954
@atulanand1954 2 жыл бұрын
Ans-D(discount amount)
@muhammadrizobegijonov4002
@muhammadrizobegijonov4002 5 ай бұрын
0
@ajwadshah786
@ajwadshah786 2 жыл бұрын
discountAmount
@vinaypawaskar7326
@vinaypawaskar7326 2 жыл бұрын
B discount
@2.savio.2
@2.savio.2 5 ай бұрын
she kinda bad tho
@akhilkumar-rm5vq
@akhilkumar-rm5vq 2 жыл бұрын
B
@thecyber465
@thecyber465 2 жыл бұрын
The answer is B.
@my_talks01
@my_talks01 2 жыл бұрын
#include void addNumbers(int num1,int num2){ int result = num1 + num2; printf("result=%d",result); } int main(){ addNumbers(5,6); return 0; } // you say this code generate an error , in the beginning of global variable scope , but its not generating any error, little confusing mam 🥺🥺🥺
@ajwadshah786
@ajwadshah786 2 жыл бұрын
bro after there was a One mistake in yours programme. after addNumbers(5,6); for output using printf(statement). thanks.
@my_talks01
@my_talks01 2 жыл бұрын
@@ajwadshah786 ok bro 👍
@abbeyziraba2967
@abbeyziraba2967 6 ай бұрын
B. discount
@KpopRumbleAlliance
@KpopRumbleAlliance 5 ай бұрын
b
@abdullahiyunusa1198
@abdullahiyunusa1198 Жыл бұрын
discount
@dnwint2
@dnwint2 4 ай бұрын
B
@fateemahamosuro4788
@fateemahamosuro4788 7 ай бұрын
B
@ianmuiruri8213
@ianmuiruri8213 7 ай бұрын
B
@NukalaDeviSaiGanesh
@NukalaDeviSaiGanesh 11 ай бұрын
B
@IfycoolAfrica
@IfycoolAfrica Жыл бұрын
B
@ekkusu006
@ekkusu006 Жыл бұрын
B
@rakesh1045
@rakesh1045 Жыл бұрын
B
@rakesh1045
@rakesh1045 Жыл бұрын
B
@shaileshpatil6416
@shaileshpatil6416 2 жыл бұрын
B
@priteshmehta
@priteshmehta 2 жыл бұрын
B
@bryanbalantes6486
@bryanbalantes6486 Жыл бұрын
B. discount
@renalynf.jurilla6705
@renalynf.jurilla6705 Жыл бұрын
B. discount
@respectmoments1495
@respectmoments1495 Жыл бұрын
b
@Fuantoni
@Fuantoni Жыл бұрын
b
@harshadatapre2133
@harshadatapre2133 2 жыл бұрын
B. discount
@shubhamsingh-bi7np
@shubhamsingh-bi7np 2 жыл бұрын
b
@my_talks01
@my_talks01 2 жыл бұрын
#include void addNumbers(int num1,int num2){ int result = num1 + num2; printf("result=%d",result); } int main(){ addNumbers(5,6); return 0; } // you say this code generate an error , in the beginning of global variable scope , but its not generating any error, little confusing mam 🥺🥺🥺
#17  C Standard Library Functions | C Programming For Beginners
10:20
Variable scopes w\ examples (Local vs Global vs Block vs Nested)
20:12
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН
LIFEHACK😳 Rate our backpacks 1-10 😜🔥🎒
00:13
Diana Belitskay
Рет қаралды 3,5 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 57 МЛН
#19 C Arrays | C Programming For Beginners
13:27
Programiz
Рет қаралды 247 М.
#15  C Functions | C Programming for Beginners
17:21
Programiz
Рет қаралды 209 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 451 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 403 М.
Variable Scope | C Programming Tutorial
9:49
Portfolio Courses
Рет қаралды 3,9 М.
#12: while Loop in C Programming |  C Programming for Beginners
12:45
you will never ask about pointers again after watching this video
8:03
A const int is not a constant.
9:16
Jacob Sorber
Рет қаралды 68 М.
How Do Linux Kernel Drivers Work? - Learning Resource
17:02
LiveOverflow
Рет қаралды 550 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН