@@laxmandarji9795 can u do my problem pls? i have something related to this and i need ur help
@soubhagyapanigrahi7242 жыл бұрын
Appreciate the effort you are keeping here, Would be great if you can change the heading of the video with proper conditional statements. or else it is misleading.
@SanjayGuptaTechSchool2 жыл бұрын
Can you please mention this with example. What exactly needs to be improved.
@AnuragRawat01 Жыл бұрын
But what if user input two spaces or more than two then output will be wrong
@SanjayGuptaTechSchool Жыл бұрын
I created it assuming one space between words.
@AnuragRawat01 Жыл бұрын
@@SanjayGuptaTechSchool oo yaaa then it's alright 😊😊😊😊
@streamungodlyhour6764 жыл бұрын
what's the return 0 for? btw thanks for the tutorial! helped a lot
@SanjayGuptaTechSchool4 жыл бұрын
It is because return type of main is int but if we are using dev cpp compiler then it is optional so you can remove that line. And thanks for appreciating.
@shashwat-d5c Жыл бұрын
can u be my wild wife on bed
@sharma32262 жыл бұрын
Sir could you Pleasee guide me how to sort number of frequent words used in pdf document. because i want to learn the most important major words for exam would be very helpful 🙏🏽🙏🏽.
@dizipatel89143 жыл бұрын
This logic are completely wrong bcz space between two words are not exactly and ever one. Sometimes more spaces are available between the words then this logic going to be wrong.
@MayankGupta0154 жыл бұрын
What if space is first and also space at last it gives wrong output.. anyone please
@mayakumari.81584 жыл бұрын
This program is not appropriate to count the total number of word in a strong.... If I started to write our string after three space or more than one space this program will not work..
@SanjayGuptaTechSchool4 жыл бұрын
This program is written for standard input expecting only one space between words. If you want to give any no of space in between words then diff logic is required.
@mayakumari.81584 жыл бұрын
@@SanjayGuptaTechSchool Sir can you give me the logic of that type of program
@SanjayGuptaTechSchool4 жыл бұрын
for (i = 0;s[i] != '\0';i++) { if (s[i] == ' ' && s[i+1] != ' ') count++; }
@bhanusivapavansurath58494 жыл бұрын
@@SanjayGuptaTechSchool super sir
@laibanoor79714 жыл бұрын
Zabrdst
@karthickeyann2452 жыл бұрын
Mass
@shaima11753 жыл бұрын
What is meaning of this "\0"
@SanjayGuptaTechSchool3 жыл бұрын
This is null character which automatically stores at the end of string. It denotes end of string.
@disha_06056 ай бұрын
This code is wrong
@aryankalpanshah5 жыл бұрын
your program is wrong Sir!!
@SanjayGuptaTechSchool5 жыл бұрын
Why?
@aryankalpanshah5 жыл бұрын
@@SanjayGuptaTechSchool Sir because if I want give more than one space b/w 2 words than this program fail to give correct output.
@SanjayGuptaTechSchool5 жыл бұрын
@@aryankalpanshah yes it is for one space only.
@chetanaggarwal2594 жыл бұрын
worst approach Suppose in a string there multiple spaces between two words then ................................???
@SanjayGuptaTechSchool4 жыл бұрын
This example is implemented assuming there is only one space between words.