Variable Modifiers − Auto & Extern

preview_player
Показать описание
Programming & Data Structures: Auto and extern variable modifiers in C programming.
Topics discussed:
1. Auto modifier.
2. Extern modifier.
3. Extern modifier examples.
4. Procedure to create a project and different files within that project.

Music:
Axol x Alex Skrindo - You [NCS Release]

#CProgrammingByNeso #CProgramming #VariableModifiers
Рекомендации по теме
Комментарии
Автор

When I will pass college and get a job I will donate to Neso academy from my first salary. Thank you for your priceless efforts.

arundhutimukherjee
Автор

clear and straightforward, better than my professor

vandarkholme
Автор

such a clear explaination ...thats the reason i always loved neso academy

gauravkumeriya
Автор

Guys they are providing everything for free and some idots dislikes these types of videos. I think they need mental treatment

Official-tknc
Автор

i love these lessons. It explains everything that I need to know in coding.

brewedscript
Автор

Yes after paying on, you will have not too much better tutorial 👍👍👍👍

anandkumarsinghCS
Автор

GCC didn't compile program with auto keyword. It throws error:two or more data types in declaration of 'var'. While, cl(MSVC) printed 0.

atharvanaik
Автор

I'm actually getting better in C and also in DSA with this course. ❣❤💛🧡

bhaweshsharma
Автор

@2:35 int var; // It is just declared, not defined..

// definition is when you assign memory to it with = operator

krutrth
Автор

sir I had tried to print output for an integer(not initialized) but instead of printing any random garbage value it prints 0 all the time. why so?

karthikbankapur
Автор

sir extern int a; doesn't work in my code blocks what should I do?
my main.c
#include <stdio.h>

extern int a;
int main()
{
printf("%d", a);
return 0;
}

and my other.c
int a = 56;

sayanmondal
Автор

I will just leave a comment for myself. Feel free to comment, thanks. Global variables are initialized to 0 by default. Extern is short for external. It declares the variable but no definition (though you can also define it), therefore no memory allocated to it. This is used when we want access a variable of the same name but located and defined in the nearest outer scope which can also include other files in the current workspace. It avoids redifinition or having to find another variable name for the same variable. Autos can't be declared multiple times, but externs can be. Declaration then definition. Initialize == define.

compangit
Автор

I am so glad I found this channel, I have been struggling to learn C for 2 years and now I'm finally understanding it! Thank you so so much!

nataliab.
Автор

As a turkish student, Hand me over to the Indian educators.

MustafaKaradeniz-yycx
Автор

sir I had tried to print output for an integer(not initialized) but instead of printing any random garbage value it prints 0 all the time. why this happens ?

sriharsha
Автор

1:44 sir what is garbage value and how it is printed?

techbeginners
Автор

My exam is knocking at the door. Your lecture keeping me fight like a survivor. Thanks a lot, sir. All my respect for you. ♥

UniversalSaad
Автор

what an amazing and smooth way of explaining, thank you so much for your effort

mohammedabood
Автор

Thank you so much for making this video. It was worth seeing this video 😀😃

nikhilagrawal
Автор

at 9.52 even if we dont write extern in main then also it will print 9 as we have already defined the global variable then why to use extern.

ojasvvgupta