C_24 Formatted Output Functions in C Language | printf() function in C | C Programming Tutorials

  Рет қаралды 169,208

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

In this video, I have discussed Formatted Output Function (printf()) with program in C Language
Best C Programming Tutorials : • Programming in C
*******************************************
Connect & Contact Me:
My Second Channel Link: bit.ly/354n7C7
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*********************************************
More Playlists:
C++ Programming Tutorials: • Lec 1: How to Install ...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
#cprogramming #jennyslectures #programming #clanguage #outputfunction

Пікірлер: 164
@suryanshmishra5262
@suryanshmishra5262 3 жыл бұрын
Finally I got the perfect channel for my coding..thnku maam
@katamabhishek8844
@katamabhishek8844 3 жыл бұрын
S mam
@rljpdx
@rljpdx Жыл бұрын
i've come back to brush up on some ansi c. i discovered you years ago so please forgive me for taking so long to subscribe. I'm going over just the specific video's i need detailed help with and that's why i come back to you. you tend to go into a little more detail and seem to have real grasp of the language as opposed to some of the other so called 'instructors'. i very much appreciate your channel and you skills have helped to better my skills. thanks again.
@maryannemuthoni5388
@maryannemuthoni5388 11 ай бұрын
For the questions: float a = 1234.345; printf("%5.2", a); Answer is 1234.35 on my IDE You also asked if , is used as an operator or separator in printf and I am not sure but i think as a separator. If it was an operator i think there would be = for assignment
@aishaghous9045
@aishaghous9045 8 күн бұрын
what is the concept behind printing 1234.35...as it only had 5 digits of width that will make 5 boxes then we have to put the numbers iside it but the boxes are being filled before the trailing digits after decimal points....i am not able to understand the conceptr behind it.
@akhilareddy3489
@akhilareddy3489 3 жыл бұрын
im watching ur all videos of C .SUPERB mam.u have explained clearly.nd ur teaching is AWESOME.........
@shiwanimishra1198
@shiwanimishra1198 3 жыл бұрын
maa'm after this series please start c++ its a need ..nyc teaching concepts are very helpful
@atharvakewate3600
@atharvakewate3600 3 жыл бұрын
Y mam 👍
@katamabhishek8844
@katamabhishek8844 3 жыл бұрын
S mam
@mayankgupta2760
@mayankgupta2760 2 жыл бұрын
I was scrolling my insta and I saw video of Cute reactions of mam than I got to know That mam teaches coding I was in a search of a teacher for coding because it's my first year and I am not getting anything and I got you hats of to you mam Appreciate your work and effort
@npavani3713
@npavani3713 2 жыл бұрын
I never saw such a lecturer like u mam☺️lots of love ❤️
@18fatima15
@18fatima15 7 ай бұрын
12:33 #include int main() { int a=1234; printf("%d",a); return 0; } output 6 #include int main() { int a=1234; printf("%6d",a); return 0; } output 1234 #include int main() { int a=1234; printf("%06d",a); return 0; } output: 001234 14:38 #include int main() { float a=1234.3456; printf("%5.2f",a); return 0; } output: 1234.35 15:16#include int main() { float a=1234.3456; printf("%e",a); return 0; } output: 1.234346e+003
@parthshroff7357
@parthshroff7357 Жыл бұрын
mam in 13:08 I think the %10.2f is of the form %(count of whole number spaces.count of decimal spaces)f and not %(count of full number including ".".count of decimal spaces)f
@14_suranjandanda44
@14_suranjandanda44 6 ай бұрын
14:39 #include int main() { float a= 1234.345; printf("%5.2f",a); return 0; } o/p - 1234.34
@prabhjotsingh9039
@prabhjotsingh9039 3 жыл бұрын
One of the best teacher in my learning 👍👍
@shireesha511
@shireesha511 2 ай бұрын
Mam you are really the perfect lecturer...Your accent is really amazing.. thankyou ma'am ❤
@manvendra91102
@manvendra91102 3 жыл бұрын
Best teacher ever my favorite mam
@maheshbankar2416
@maheshbankar2416 3 жыл бұрын
thanks mam for ur efforts everything at one place very well covered till now love u mam
@er.travelogueinfovideo5835
@er.travelogueinfovideo5835 3 жыл бұрын
one of the best teacher for data str...❤️❤️
@EnochRaja-vj8ie
@EnochRaja-vj8ie 3 ай бұрын
thank you so much mam., you r my GOD., i will pray for god that you will have long life
@isaac-victorshonowo1838
@isaac-victorshonowo1838 Жыл бұрын
Watched and Understood ❤
@jenithj6596
@jenithj6596 3 жыл бұрын
Can u do a video on SQL Query ? Will be really useful !!!
@user-uu6xe5rx5m
@user-uu6xe5rx5m 2 жыл бұрын
Mam I am listening your clases daily your explanation is amazing
@shacks05
@shacks05 3 жыл бұрын
I kindly Request . To Pls Make Videos on Python As soon as possible mam ❤️ . Because we are Addicted to u 🙏☺️
@psc_youtuber
@psc_youtuber 3 жыл бұрын
That's really a good explanation. Thank u Mem!
@LenovoTab-ji2bf
@LenovoTab-ji2bf 3 жыл бұрын
The final output is 34.35 mam.
@k.annpurnamma3357
@k.annpurnamma3357 3 жыл бұрын
How will you get
@peterpace3379
@peterpace3379 2 жыл бұрын
Wrong
@smritisamikshyamishra5988
@smritisamikshyamishra5988 2 жыл бұрын
Can't it be 12.34?? And why? Please explain
@Nanami2976
@Nanami2976 2 жыл бұрын
@@smritisamikshyamishra5988 " printf("%5.2f",a); " will give the five values which are there till the decimal point (it will include the decimal point also), in this case, "1234." and the .2 basically represents how many values should be printed after the decimal point, it is simply rounding off the floating digits. In this case, "34" So, the final output will be 1234.34 not 12.34 :)
@smritisamikshyamishra5988
@smritisamikshyamishra5988 2 жыл бұрын
@@Nanami2976 oky ! Thanks a lot
@lalitharamachandra6659
@lalitharamachandra6659 9 ай бұрын
Mam I got 1234.35 as output 14:39 When I had used %e I got 1.23e+03 as output thanks mam
@rohan-o5w
@rohan-o5w 8 ай бұрын
14:37 ans is 1234.34
@nithiya8418
@nithiya8418 3 жыл бұрын
Thank u Mam ur Data Structure playlist really helped me a lot for exam prep... please make a playlist for Computer architecture also mam... the subject sounds so vague pl help mam... 🙏🙂
@shivaraman4237
@shivaraman4237 2 жыл бұрын
P00
@akshayarchaknitnagpur59
@akshayarchaknitnagpur59 3 жыл бұрын
Amazing channel for coding maam..thanks a lot maam
@rishthikayman.b8544
@rishthikayman.b8544 Ай бұрын
# include int main() { float a = 1234.56; printf("%5.2f ", a); return 0; } output: 1234.56
@anubhavkumar7624
@anubhavkumar7624 3 жыл бұрын
Mam " When will u start the classes for c++and java plz take it parallely
@swetachaudhary9220
@swetachaudhary9220 2 жыл бұрын
Thank you so much mam for this wonderful explanation. Thanks a lot😊
@sumonchakrabarty6805
@sumonchakrabarty6805 3 жыл бұрын
Maam, you are just awesome 😍😍😘😘
@harishchanderjha8445
@harishchanderjha8445 Жыл бұрын
very good lecture.thanks a lot.
@uttej1390
@uttej1390 3 жыл бұрын
After this please start c++ course mam🔥🔥🔥🔥
@ComputerScienceSimplified
@ComputerScienceSimplified 3 жыл бұрын
Awesome video, keep up the amazing work! :)
@smriti5051
@smriti5051 3 жыл бұрын
Ma'am please make a video on the problem of rod cutting in dynamic programming.
@Anilkumar5045-w9p
@Anilkumar5045-w9p Жыл бұрын
I love you r videos mam
@sistlachaitanya1222
@sistlachaitanya1222 3 жыл бұрын
Tried to be 1st mam .
@trollsthoppi
@trollsthoppi Жыл бұрын
you are doing a great job ma'am
@tps8470
@tps8470 2 жыл бұрын
Thanks a Lot Mam
@continnum_radhe-radhe
@continnum_radhe-radhe 2 жыл бұрын
Thank you very much mam 🔥🔥🔥
@jenithj6596
@jenithj6596 3 жыл бұрын
!!! a suggestion..... post u r videos on day time.... it will be better !!!
@mayureshnagavkar1333
@mayureshnagavkar1333 2 жыл бұрын
12.43 has to be output...please confirm as number has to be in 5 blocks..
@syedmohammedzaheer7504
@syedmohammedzaheer7504 3 жыл бұрын
When u say "now" with so much force i get to know something important is coming...
@bommaniraveendrababu9257
@bommaniraveendrababu9257 3 жыл бұрын
Everything learning from ur videos thank u mam
@shubratoband
@shubratoband 2 жыл бұрын
This video helped me ..thanks mam 😄
@izel_5
@izel_5 Жыл бұрын
Thank you mam ❤
@parteekmalik3034
@parteekmalik3034 Жыл бұрын
amazing mam just loved it thanks mam
@Vishal-one8
@Vishal-one8 Жыл бұрын
Here we want declare sum = a+b at first 7:06 .I mean before printf
@ramanmishra860
@ramanmishra860 2 жыл бұрын
Thanku so much mam God bless you
@simplemathematics3189
@simplemathematics3189 3 жыл бұрын
Zbrdst mam really well explained
@pratikranjan3101
@pratikranjan3101 3 жыл бұрын
Mam please make a video on Java tutorial for beginners
@misbahulislam999
@misbahulislam999 3 жыл бұрын
Mam where these all code are written ,on which platform on computer e.g mam I have start my computer and what should I do to write code ,on which platform ,
@hariparuchuru3858
@hariparuchuru3858 2 жыл бұрын
if we use %5.2f then the output is 1234.35
@ummesalma6669
@ummesalma6669 Жыл бұрын
Bhaii a kysa ayega??
@hpsingh000
@hpsingh000 Жыл бұрын
@@ummesalma6669 mera be same aa raha haa bhaiii
@Rajeevkumar-cm4mn
@Rajeevkumar-cm4mn Жыл бұрын
nice video 👍
@Sabbi-p8v
@Sabbi-p8v 10 ай бұрын
@jitendrapratapsingh9189
@jitendrapratapsingh9189 2 жыл бұрын
mam , in gdb compiler , it shows 1234.34 , but for this 8 is required na??
@aditya_ariyan
@aditya_ariyan Жыл бұрын
same problm bro
@AlIS_RavishAcharya
@AlIS_RavishAcharya 2 жыл бұрын
Void main() { Int a=50,b=48,sum; Scanf("%d %d", &a, &b); Sum=a+b; Printf("%d", sum); } 1) if we remove scanf function it will give output correctly 2) if we include scanf function then output is not showing why mam? Scanf function doesnt effect right in this code why that happens?
@choudhary.0402
@choudhary.0402 2 жыл бұрын
Values pahle hi initialize kar di to fir scanf kyu use Kiya isiliye scanf se output naii aa rha
@swapnilapotikar1406
@swapnilapotikar1406 2 жыл бұрын
i think you have already initialize value of a n b then why you are using scanf function
@pragathi068
@pragathi068 2 жыл бұрын
For 2 nd one you need to Give a and b values... Then it will give correct answer.
@mechile_pakki
@mechile_pakki 2 жыл бұрын
@@choudhary.0402 right
@pathanshoharath2267
@pathanshoharath2267 Жыл бұрын
scanf function hold the screen that is why u r not getting o/p.
@jatinbansal7381
@jatinbansal7381 3 жыл бұрын
Mam can you pls explain how to clr gate....can you share your experience.
@Npanywayme
@Npanywayme 3 жыл бұрын
First Love♥️
@ececse
@ececse Жыл бұрын
thankyou mam🙏
@ghanatheaarthi6673
@ghanatheaarthi6673 3 жыл бұрын
Mam pls provides detailed notes also
@Sreychoreophile
@Sreychoreophile 5 ай бұрын
While giving printf("%5.2f", a) ; for the number 13.1345 it's giving the output as 13.14......but I was expected it will be 13.13 according to madam's lecture.. Please someone reply .. Why it's coming like this
@chiraggaba_030
@chiraggaba_030 3 жыл бұрын
Tysm mam
@Lovingmine181
@Lovingmine181 Жыл бұрын
mam for printf(" %5.2f",a) statement 0.00 is printing in my pc mam how is it can you explain?
@aditya_ariyan
@aditya_ariyan Жыл бұрын
i think you are decleare int type of data
@sandunijayalanka1464
@sandunijayalanka1464 Жыл бұрын
a=1234.3456; Printf ( "%5.2f", a); Output was 1234.35 Why ma'am As you say, I thought it will give only 5 digits including dot mark But here are 7 digits
@abhishekmhtcetmotivation8648
@abhishekmhtcetmotivation8648 Жыл бұрын
And will be Output 36350
@RamSastry-n3j
@RamSastry-n3j Жыл бұрын
The answer is 0.00 as there is no space left for values after decimal points ....
@chvaishnavi7985
@chvaishnavi7985 2 жыл бұрын
IN WHICH IDE WE SHOULD LEARN , CAN U SUGGEST . WHICH IDE TO BE DOWNLOADED.
@arshsingh1322
@arshsingh1322 2 жыл бұрын
Mam...in my b.a2nd sem syllabus there is ..standard and formatted statement...so im confusing that what is the standrad statement??
@15easy
@15easy 3 жыл бұрын
Mashallah
@sassy_snowflake_
@sassy_snowflake_ Жыл бұрын
📚
@shashank_kishore_
@shashank_kishore_ Ай бұрын
❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@tejashwinisg7396
@tejashwinisg7396 Жыл бұрын
Fantastic teaching mam❤️
@abhishekshahane4056
@abhishekshahane4056 Жыл бұрын
thanks🥰
@sachingupta-nm3vx
@sachingupta-nm3vx 3 жыл бұрын
tq mam
@SHWETA-nm4dn
@SHWETA-nm4dn 4 ай бұрын
mam jo ap h.w me ques dete ho as to write down in comment please ek bar correct ans bhi batadiya kare as we are in confusions later ..and ap hamesha hard ques jo apko karwana chaiye vo comment mai likne ki liye bol dete ho .. iagree ki hame run karki check karna h but for to check if we had done it correct or not we get to know so it,s a request and suggession .
@abhishekpawar5804
@abhishekpawar5804 8 ай бұрын
done
@ROHINEECHAUDHARI
@ROHINEECHAUDHARI 3 жыл бұрын
Difference between formatted and unfomatted I/o function
@souravkandar7342
@souravkandar7342 3 жыл бұрын
Mam please %5.2f, elaborate
@Nanami2976
@Nanami2976 2 жыл бұрын
the 5 is is taking in the values which are there before the decimal point but it also includes the decimal point. Whereas, the .2 will round off the floating numbers and give only two values after the decimal point. In this case, 1234.34
@twinklelight9829
@twinklelight9829 2 жыл бұрын
@@Nanami2976 thank you soo much
@TimeWillChange2412
@TimeWillChange2412 3 жыл бұрын
👌👌
@tithighosh2169
@tithighosh2169 3 жыл бұрын
Ma'am 🙏
@jayeshkoli3876
@jayeshkoli3876 3 жыл бұрын
16:43 output is 34.35 mam please check my answer.
@vaibhavsinhbihola1
@vaibhavsinhbihola1 3 жыл бұрын
I run on compiler but the answer is 1234.34 why ?
@1shAggarwal
@1shAggarwal 2 жыл бұрын
@@vaibhavsinhbihola1 same is mine but 1234.35
@fuadhamedmohamed4311
@fuadhamedmohamed4311 2 жыл бұрын
out put will be 1234.35
@AMARGAMING07
@AMARGAMING07 Жыл бұрын
whats the reason behind printing .35 in place of .34?
@Sharmila-r9h
@Sharmila-r9h 20 сағат бұрын
It's not saarate mam it is seperate
@hardeepbazigar
@hardeepbazigar 3 жыл бұрын
Mam app live aa krr doubt b la skti hai kya
@vaibhavsinhbihola1
@vaibhavsinhbihola1 3 жыл бұрын
Space 1234.34
@StudentsStudyRoom
@StudentsStudyRoom 4 ай бұрын
why both %10.2 and %5.2 provide same output?
@shivam7164
@shivam7164 Жыл бұрын
34.34
@mainshashaik5097
@mainshashaik5097 Жыл бұрын
S
@ananyaghosh6402
@ananyaghosh6402 2 жыл бұрын
mam printf("%6d",a); is not working accepted Iťs only leaving space it's not going right shift
@hrsheth6352
@hrsheth6352 2 жыл бұрын
itna achha to coaching me bhi samaj nahi aata hai mujhe...thank you ma'am...🌹
@karabidebnath1481
@karabidebnath1481 3 жыл бұрын
Mam pls tell me what is gets () function and goto
@sinianil2221
@sinianil2221 2 жыл бұрын
You know I'm studying in class 8 and I want to study thiss to pass the freaking exam only in our school around my reagion
@srinivasallani4859
@srinivasallani4859 3 жыл бұрын
12.34 is output
@cleverarrrrrrrrrno9313
@cleverarrrrrrrrrno9313 Жыл бұрын
a=1234.35 may be the answer.
@sunitathakur8885
@sunitathakur8885 3 жыл бұрын
👍
@sandunijayalanka1464
@sandunijayalanka1464 Жыл бұрын
Madam Why the output gets 1234.35 Why it doesn't get 1234.34
@shivam7164
@shivam7164 3 жыл бұрын
34.35
@hemendrasahu2831
@hemendrasahu2831 2 жыл бұрын
Mam maine %6d likha printf me lekin output aap jaisa bole vaisa nahi aya mera compiler tarbo C++ hai
@idwtv534
@idwtv534 2 жыл бұрын
1234.35 1.234346e+03 is the output
@aarjuparween8724
@aarjuparween8724 Жыл бұрын
how u got this in output, manually it is correct but when I am running the code it shows 1.23e+003??
@ashisharyan9150
@ashisharyan9150 2 жыл бұрын
5.2%f wala nhi aaya ak row me 5 box bnayenge . Ak box me 2 box me decimal ke baad ka value rkhe to 34.34 hoga n
@hpsingh000
@hpsingh000 Жыл бұрын
aana to ye he chahiyaa per 1234.34 aa rahaa haa
@SadhanaSharma
@SadhanaSharma 2 жыл бұрын
5.2 width pr print kiya to 1234.35 ayA output
@musicalvibes9541
@musicalvibes9541 3 жыл бұрын
The answer would be 1234.35
@AMARGAMING07
@AMARGAMING07 Жыл бұрын
the answer should be 1234.34, but why its displaying 1234.35 ?
@walkwithme_P62
@walkwithme_P62 3 жыл бұрын
13.35
C_25 Unformatted Input Functions in C | C Programming Tutorials
14:19
Jenny's Lectures CS IT
Рет қаралды 238 М.
C_23 Formatted Input Functions in C Language || C Programming
19:16
Jenny's Lectures CS IT
Рет қаралды 258 М.
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 29 МЛН
C_33 Introduction to Loop in C Language | Need of loops| C Language Tutorials
15:55
Recursion in C
11:12
Neso Academy
Рет қаралды 925 М.
The Wordpress drama keeps getting worse
12:47
Theo - t3․gg
Рет қаралды 33 М.
C_26 Unformatted Output Functions in C | C Programming Tutorials
11:56
Jenny's Lectures CS IT
Рет қаралды 130 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 882 М.
C_27 If Statement in C | C Programming Tutorials
20:56
Jenny's Lectures CS IT
Рет қаралды 407 М.
Basic Output Function - printf
6:14
Neso Academy
Рет қаралды 559 М.
C_84 Introduction to Functions - part 1 | C Language Tutorials
25:27
Jenny's Lectures CS IT
Рет қаралды 990 М.
C_31 Switch Statement In C | C Programming Tutorials
22:48
Jenny's Lectures CS IT
Рет қаралды 288 М.