Input and Output: Printf and Scanf - C Programming Tutorial 06
Вставка
- Опубліковано 1 жов 2024
- See complete series on C programming here:
• Introduction to Progra...
In this tutorial, we have explained printf and scanf functions in C that are used to read input and write output from command line or Console.
For more such videos and updates, subscribe to our channel:
/ mycodeschool
You may also like/follow us on Facebook/Twitter:
/ mycodeschool
/ mycodeschool
printf("You explain better than my professor... thanks!");
I wish I have discovered your channel earlier, nevertheless I am happy to actually learn and thankful to you. You are definitely the master of pedagogy, you make easy what is thought impossible.
i request my codeschool to upload more videos on c. like loops etc
thank u
Bro be is no more alive now 😭
What is the use of " %d " why dont we just type for example " printf(c)???
Nice and well explained tutorial.,.. i really liked the memory visualization
If printf in C cout in c++ what scanf in c++??
an excellent lesson, thank you so much!!
Nice, very nice. Thank you for the effort of sharing you knowledge with others in need of it like myself.
Bro thank youuu ❤️❤️❤️❤️🥰🥰🥰🥰
I dont know this page is so awesome..it make me understand how to make some program
Amazing! Thanks for the lesson. You are awesome! :)
I was struggling with this but you helped me understand this in a way that my teacher was not explaining. Thank you very much! I will definitely be using your videos to help me throughout my course!
Also, are you planning to add videos on graph and beyond? I am waiting for them :)
Thank You So much for such a useful videos. keep posting.
#include
int main()
{
int age;
float weight;
char sex;
scanf("%d",&age);
scanf("%f",&weight);
scanf("%c",&sex);
printf("age = %d, weight = %f, sex = %c",age,weight,sex);
return 0;
}
this is my program i am not getting the result of sex!!! the run function is not leting to input the sex
Very very thnx sir u clear my doubt.. What is scanf.!! Nyc job👍
what if we add space in between "%d and %d" in printf,, i've done it and the value of b is resulting with 1024 i didn't get that :/
you also need to supply another identifier of integer type.
I like your way of explaining .. Its so understandable and clear thank you
Thank you. The diagrams are really helpful. I've been writing them down.
Excellent explanation..... thank god for finding this channel for easy understanding of the subject
amazing explanation of everything. Thanks!amazing explanation of everything. Thanks!
yo buddy its the best explanation. I have seen many videos but could not grasp the meaning of these functions. thanks a lot man.
Thank you so much,the video was so helpful
Very Good this guy is amazing, keep up doing this videos bro.
Also, are you planning to add videos on graph and beyond? I am waiting for them :)
Could you make some video(s) on loops? I can't find them if you have
i'm sorry I don't get . so i will me on does anyone have the full code?
Are bhai computer💻 kya video computer par nahi baanye yha toh laptop💻 pe baanaye hote
amazing explanation of everything. Thanks!
Who is here from chandigarh university???
Why we should type space for many times?
Hi, yo know why 10 ^ 23 = -2147483648 in language C? Thanks you
Perfecttttt...This was the video I was looking for..Cleared my confusion
keep up the good work.really helpful!
your way of describe a topics with visual effects were gr8...thank..for ur concepts...
im doing a conversion of kilometers in miles and im pretty sure ive done it right it builds and it runs as well. but when I enter the value and hit enter my program exits out. any help would be greta
I don't know the basics of c programming how it's used and why. Pls explain
Printf("I understand you more than my professor... thanks!");
Thanks a lot...😊
I understood.
Rest in peace bro 🥲😔
very good lesson, thank you sir very much, clear and concise.
Your explain is better. Thank you very much
you saved my exams!! thank youuuu
This is a great video, thanks!
thanks
So much talk so little info
Thankyou :D
i dont really understand programming why that happends
You can try to learn about Operating systems and hardware.
question...I'm trying to input a four digit integer (like 1234). is there a way to selectively (or parse) each digit of the integer by using the %d formatting?
# include
int main()
{
int a,b,c;
scanf("%1d %1d %1d",&a,&b,&c);
printf("a=%d b=%d c=%d",a,b,c);
}
even using some garbage variable u expand ur selectivity
i lost my brain cell
Thank you sir to make me understand....
Which Playlist after this Introduction?!
great
Printf("Thnx");
Thank u Sir.... U r Great
Thanks for this vedio
can you make a video how to install visual studio?! thank you.
Codeschool was died in a car accident 😔
Splendid! Finally know why and when should we use pointer!
thank u sir \
Which ide/editor are u using sir?
thank you very much brother
how do you run your commands in windows
very good thank you so much!
Good teacher ❤️👍
Thank you so much
Still idont know the exact time to use float,scanf amd printf.please reply me
I don't think he's explained float yet, but the printf is the command to tell the program to display whatever is inside it, and the scanf is the command to receive input from the user of the program.
Timothy Ishmael ty
Sorry for late reply
Float is used when you have number in decimal like 26.58, 56.1, etc number which have point in it.
int is used when you want to use a numbers which not have point in it like 28, 58, 56, etc
printf is used when you want to print something on screen.
scanf is used when you want to take data from user.
nice sir 👍 thanks
thnx for these all lessons
where do i write programs ?
i have code blocks compiler , but programs aren't running
ideone.com/lVixoB try this online compiler
code blocks is an IDE, you may need to install a GCC (mingw, cygwin, etc) in order to compile your code.
void main ( )
{
int x;
x = printf(“I See, Sea in C”);
printf(“
x= % d” , x);
} explain
Syntax error
Excellent tutorial
thank u so much
was helpfull thank you////
Thanks :)
if I write 'return1' instead of return0 what is the difference ??
When using "Return" function,you are actually doing so called "early exit out of a program".If you want your program to stop executing at some point you write return function.You can write only "return;" or "return 0;" or "return 1;" or "return 5;",It does not matter,but it matters if you use int main()(return 1; used usually) or void main()(return; used in this case) as an entrance function.
u r a best teacher on this planet earth
Unfortunately, he is not on this planet any more.
thanks
Tq sir
Nice
thank you.
thanks
realy helped me
Thanks
Nice
bhut bdhiya