one year ago I solved a program using for loop without a condition in it, and miss the colon I spent one day looking after the error position and finally I cheated from a friend and surprised from the error ! thank you Neso to make the reason clear
@madhaviyalagam21586 жыл бұрын
Till now I never saw like this clear explanation.well plz upload more videos.that will helpful for people who are not able to go institutions&coaching centres like me☺️☺️☺️
@KarthiKeyan-lp7es5 жыл бұрын
Best teaching in c
@VRR6T6 жыл бұрын
Awesome video! It's incredible the way you explain those concepts that aren't commonly shown. Great job! 👏🏼👏🏼👏🏼
@jishanshaikh89616 жыл бұрын
We all appreciating your work!!! Have a Happy year!!!! I learned a lot from other lectures like signals and systems, Analogue Electronic!!!~~~
@noraimansaupi25694 жыл бұрын
Can i ask you about coding basic C loop
@noraimansaupi25694 жыл бұрын
jishan shaikh you can wassp me 0136184581
@mhmdfathi67805 жыл бұрын
#include #include int main() { int x=1024; int count=0; for(;x;x>>=1) { printf("Hello "); count++; } printf("%d ",count); return 0; } Ans: 11 times
@charanmc44843 жыл бұрын
Always my favourite channel for learning coding with perfect logics❤️❤️
@MorrowSind6 жыл бұрын
My new favorite channel. :)
@dayana3232 Жыл бұрын
When he mentioned “we have learned this previously” and I haven’t get to that video lecture yet 😭👍🏼
@stefogo1Ай бұрын
I am absolutely soooooo thankful that i found you. Your video are soooo good. You explain very very good. Thank you for that.
@muhammadyaqoob91293 жыл бұрын
SIR, I only saw one of your videos and became your fan. LOVE YOU SIR FROM PAKISTAN....
@Aabara_ka_dabara Жыл бұрын
still learning new concepts of loops thankyou for your content
@xiaoshan97223 жыл бұрын
unbelievable! when pausing the video and check the program fragment, i got the correct answer.
@Pritamdas-bg7fp6 жыл бұрын
awesome explanation
@kaluvanhariharan42566 жыл бұрын
Very interesting .... excellent explanation ...
@Satyam_105 жыл бұрын
Your lectures are very helpful you explain in a very simple way
@chanduji83203 жыл бұрын
Extraordinary skill of explanation
@girirajtomar5196 жыл бұрын
Best video of c programing
@karancontractor5864 жыл бұрын
Appreciate the questions and thanks a lotttt just a request to increase the volume or keep the mic closer
@AbdElrahmanAmirMohamed4 жыл бұрын
( i >>= 1 ) ...... you can write ( i /= 2 ) instead of Previous expression.
@priyanshugupta44224 жыл бұрын
Great video...thank u so much. Dil se♥️
@laatjacob89275 жыл бұрын
Thanks a lot my brother
@roshnis2616 жыл бұрын
Thankyu sir. Kindly add more codes
@sukiya97312 жыл бұрын
Super question ***THANK YOU****
@harshvardhansharma58505 ай бұрын
Answer to the problem is 11, Explanation -> The value i.e. 1024 will be right shifted and will repeat this until the value becomes 1. Right shifted values will be 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1
@arpitac94813 жыл бұрын
Awesome 👍...
@sachingeorge60902 жыл бұрын
Exallant video sir thanku a lot
@مريمعادل-ب2ك Жыл бұрын
عاش سوال تحفة بجد 🇾🇪
@yagneshacharya24612 жыл бұрын
POV : You can never predict the answer of neso questions
@jeevapriya48535 жыл бұрын
Ur teaching was gd can u pls post more videos on ,design nd analysis of algorithm python nd microprocessor 8086
@sampathrao41496 жыл бұрын
A good challenging program
@himanshusoni28182 жыл бұрын
nice explaination
@tomidebbie20782 жыл бұрын
Nice example
@YJsTech5 жыл бұрын
omg it was awsome
@yogesh18806 жыл бұрын
thank you sir
@vidyabukitgar5 жыл бұрын
sir actually i couldn't understand how u represented 1024 in binary.can u pls tell?
@proxxy39335 жыл бұрын
He divided it by 2 and goes on till he get 1
@proxxy39335 жыл бұрын
Actually 001 etc r d remainders which he get by dividing it by 2 buddy!
@sanpreetbagga84435 жыл бұрын
Same here dude
@sanpreetbagga84435 жыл бұрын
@@proxxy3933 tqsm prayagni dii😊
@ritikshrivastava94424 жыл бұрын
@@nivasreddy u can also simple learn a formula for right shifting (Value of whose shifting is need to done÷2^right operand)
@mhmdfathi67805 жыл бұрын
He will represent right shifting till he reaches zero and stops
@manjulas47416 жыл бұрын
thank you so much 🙏
@psociety3715 жыл бұрын
Superb video
@haniazehranaqvi53662 жыл бұрын
fantastic
@bharathbolloju82252 жыл бұрын
Bro...small doubt, int datatype can store two bytes of memory...which 8 characters..ur using 10?? Let me know ..that I missing.
@handle_gc2 жыл бұрын
No. Size of int depends on compiler. You better understand how right shift(>>) works. Here 1024 represents 2^10 which is 11th place starting from 2^0. ALSO 2 bytes = 16 bits 4 bytes = 32 bits
@jaspreethayer22756 жыл бұрын
Stunning
@Ak-lt8zy6 жыл бұрын
Thanks
@true41894 жыл бұрын
Thank u
@kesavamasanam87435 жыл бұрын
Tq
@inferiorsouls73402 жыл бұрын
syntax of the for loop stands wrong, as the curly braces are missing
@handle_gc2 жыл бұрын
No. If only one statement is written after for(; ; ; ) or while() then it is considered as part of that loop.
@anushareddy52035 жыл бұрын
Please providing java concepts also
@gatecomputerscience14843 жыл бұрын
Please upload ppt
@strongboi59666 жыл бұрын
Great! I thought it would be infinate
@samarthtandon21636 жыл бұрын
If the expression was like: i >>=j than the i will be divided by the 2^j And if the expression was like: i
@venkateshviswanath65936 жыл бұрын
Samarth Tech i dint get this...y cant it go to again same position from 00000000001 to 10000000000
@Hsjjklm6 жыл бұрын
@@venkateshviswanath6593 because, in binary if it shifts upto last bit of right or left,after last bit if u give again shift operater either left or right it will go out of the number and sit in carry.if u give again shift carry bit gon and last shifted bit will enter the carry
@Hsjjklm5 жыл бұрын
@@soorajyadav1585 how is It?
@Hsjjklm5 жыл бұрын
@@soorajyadav1585 1024 binary number left most bit is 1 rest all zero .If u shift it left 1 will go and sit in carry bit. Number remains is only zeroes.so loop will execute only one time
@ooss748 Жыл бұрын
Should be another easy solution
@ayeshashafat4 жыл бұрын
If want to know output without paper & compiler then how to do in the case of above question?
@rajivattri206 жыл бұрын
sir make videos on data structure
@cutiecutie29496 жыл бұрын
why if i>>1is written then executing compiling infinite loop?
@devikollu89775 жыл бұрын
same doubt
@linodaveiga56425 жыл бұрын
You are missing the = after >> You must write >>= and not >> because they have different meanings
@haribabu13874 жыл бұрын
Option d
@georgezhelyazkov8153 жыл бұрын
Where are the Curly brackets after for ?
@georgezhelyazkov8153 жыл бұрын
Thanks
@wiswor50725 жыл бұрын
Why is 1024 = 100 0000 0000?
@UCSHareeshKumar5 жыл бұрын
Change decimal number into binary
@rastaarmando70585 жыл бұрын
because It's 2^10 wich is 10^11 in binary.
@ruturraj4 жыл бұрын
how to get binary value
@nikitapendu76373 жыл бұрын
Thorough factorization by last digits in 0,1
@benguvlogs85063 жыл бұрын
Nice
@cylelance43072 жыл бұрын
Might be a dumb question, but is this just how to code a truth table?
@akshaydeshmukh51586 жыл бұрын
sir then what will be output for left shift instead of right shift in same program
@samarthtandon21636 жыл бұрын
It will go to infinite.... As it multiplies the i by 2 and i never reach to 0
@digvijayparit3946 жыл бұрын
@@samarthtandon2163 Mine is showing 6 times when i left shifted . Can you explain why??
@jackofnotrades156 жыл бұрын
@@digvijayparit394 which compiler are u using... if integer is 2 bytes in the compiler then answer is correct as after left shifting 6 more times i's value will go to zero...try printing the value of i after the loop it will show u zero.This happens because of round of mechanism....and the default modifier assumed by the compiler i.e signed or unsigned. Did u use int or unsigned int while declaring i as integer?
@sravyasri51015 жыл бұрын
Pls say understandingly
@kishors82004 жыл бұрын
@@samarthtandon2163 I will reach 22 times
@compangit15242 жыл бұрын
Comments for myself: It is not necessary to mention all the 3 steps inside the for loop. Here initialization is not done inside it.
@camerald82573 жыл бұрын
I know that if it isn't 0 it means true but how about negative integer? Is it still true?
@its_SR072 жыл бұрын
yes
@guntasgill18963 жыл бұрын
i think in question 1, it will be an error because of missing curly braces after for loop.
@andistheinforitbutso75133 жыл бұрын
No error. bcoz the next single line after a conditional loop or a condition does not require curly braces. You may put braces or not. But for two or more lines, curly braces are needed.
@bibinthomas5923 жыл бұрын
When I write this code as below Hello World is printed infinitely.WHY? int main() { int i=1024; for(;;i>>=1) printf("Hello,World"); return 0; }
@faithmairura58632 жыл бұрын
You put two semicolons....
@faithmairura58632 жыл бұрын
You didn't give a condition
@faithmairura58632 жыл бұрын
Here.... For (; i; i >> 1)
@Ineedabr10 ай бұрын
1:00 11
@akashpurbia43905 жыл бұрын
when we use leftshift operator instead of rightshift operator then hello world will be printed only once.
@rastaarmando70585 жыл бұрын
You really think 1024 is the last number in binary?
@kishors82004 жыл бұрын
@Prashant kumar singh Bro please explain how bro
@38.coanshududhpachare932 жыл бұрын
Compile time error
@scar_mystic3 жыл бұрын
Why 1 followed by 10 zeros at the beginning
@haribabu13874 жыл бұрын
It doesn't print
@krishnakumargupta61415 жыл бұрын
Sir App Hindi mai question bna degai
@accessdenied93933 жыл бұрын
I guess that, the shift operator by one used to half and half the value until it reach to zero
@Burn_Andbuild Жыл бұрын
I tried this problem in vscode and it doesn’t print 11 times it was infinite times
@mathematics_rajkumar3 жыл бұрын
Sir.. In code blocks I'm not getting 11 hello world?
@amirjahacongress70102 жыл бұрын
Why i is equal to 0 in question . I value is equal to 1024 why he is trying to.make i equal to zero
@hahahah13104 жыл бұрын
how you know binary number of 1024
@Vikram_3214 жыл бұрын
Sir Infinite time ho raha h mera to
@shaikhzeenat43995 жыл бұрын
Can any one explain the concept of binary I didn't understood that
@deepakpatra20115 жыл бұрын
Decimal to binary conversion process
@saketsumanhello6 жыл бұрын
D
@progress57792 жыл бұрын
it was just 10
@catlord696 жыл бұрын
you haven't specified output type (printf ("%s",....) )
@XeartyBG6 жыл бұрын
That's a literal. There is no need to specify type.
@Varian_t5 жыл бұрын
Wow
@parampatel35522 жыл бұрын
i didnt get 11 times hello world printed in code-blocks
@yellapuvennela16916 ай бұрын
How 100 0000 0000 came for 1024
@ashishrao17893 жыл бұрын
Anyone here 😀
@amar42h_ Жыл бұрын
Kyu Mai computer liya 😓😓
@vishalsnsingh4 жыл бұрын
So weird !
@ooss748 Жыл бұрын
🤪
@azteccortez4466 Жыл бұрын
You are calling "semicolon ; " as "colon : " 🤣
@ekekelvin465510 ай бұрын
🤓👆🏾
@manalni_yevadra_apedi56025 жыл бұрын
You are wasting lot of time for a single concept 😉