Hello sir, Thanks for your explanation on garbage value and regarding sequential execution. But the question here is how exactly the compiler will calculate the garbage value? Is there any secret logic hidden behind it? Since simply the compiler won't generate on its own.. Also people could say that if the var is not initialized and if suppose if it is stored in stack that particular location is used by some other application and during it's exit it won't clear the location and get killed. But the above explanation is not sufficient.... I need the hidden secret behind it. Could you kindly let me know or explain if some thing is there for calculating the garbage value. Thank you in advance... :-)
In this sequential execution program if we use scanf function. Then a=a+1 declare which line... Like int a, b; Printf("enter the value of a, b); Scanf(" %d %d",&a, &b) Printf (" a=%d b=%b", a, B)
sir i done the same program and it gets result successfully but some of the arrays is not getting actual variable value in output screen after initializing the variable how could we erase the garbage value in output screen?
Hi Elizabeth if you declare any variable which is not initialized will be having Garbage values. Coming to arrays of you initializa ateast 1 element then all the remaining elements which are declared will be having zeros. Example : if you declare an array A[3] ={0}; This statement implies A[0] A[1] A[2] the three elements will be initialized to zeros and A[3] will be having garbage value. Hope your doubt has been clarified.
Hi Elizabeth plz make a selfie video with your feedback on my RUclips channel and send to my WhatsApp number 9885466061 expecting feedback from you soon. Thanks for watching my sessions.
not only one program sir any one i used to practice an array programs but not coming any problem proper output. but i copy from link and paste means it will execute properly and give the result. when iam not getting the output correctly, i'll debug. in that case also it is behaving crazy
Sir if the value of the variable is filled with garbage value then how come the program is understanding a=a+1 as at the place of a we have assigned 5 and ww know that 5 is not equals to 5 + 1 that is 6.
great sir
awesome sir , wow!!
Super example and explanation
Hello sir,
Thanks for your explanation on garbage value and regarding sequential execution.
But the question here is how exactly the compiler will calculate the garbage value?
Is there any secret logic hidden behind it?
Since simply the compiler won't generate on its own..
Also people could say that if the var is not initialized and if suppose if it is stored in stack that particular location is used by some other application and during it's exit it won't clear the location and get killed.
But the above explanation is not sufficient.... I need the hidden secret behind it.
Could you kindly let me know or explain if some thing is there for calculating the garbage value.
Thank you in advance... :-)
Very beautiful explation
Thank for your awesome explanation sir
Very good explanation
Nice work sir a great thanks. .😍😍
Zabardast
nice explanation Sir
thank you ashay for watching my video and thanks for supporting my channel.
In this sequential execution program if we use scanf function. Then a=a+1 declare which line...
Like int a, b;
Printf("enter the value of a, b);
Scanf(" %d %d",&a, &b)
Printf (" a=%d
b=%b", a, B)
Super sir
you said the program i exicuted sir , but waring shows: function 'getch' have a prototype. and warning; function should return a value
I need reason, why the garbage value is assigned.
super video
hi raja
thanks for your interest and support towards our channel.
sir i done the same program and it gets result successfully but some of the arrays is not getting actual variable value in output screen after initializing the variable how could we erase the garbage value in output screen?
Hi Elizabeth if you declare any variable which is not initialized will be having Garbage values. Coming to arrays of you initializa ateast 1 element then all the remaining elements which are declared will be having zeros.
Example : if you declare an array A[3] ={0};
This statement implies A[0] A[1] A[2] the three elements will be initialized to zeros and A[3] will be having garbage value.
Hope your doubt has been clarified.
Hi Elizabeth plz make a selfie video with your feedback on my RUclips channel and send to my WhatsApp number 9885466061 expecting feedback from you soon. Thanks for watching my sessions.
not only one program sir any one i used to practice an array programs but not coming any problem proper output. but i copy from link and paste means it will execute properly and give the result. when iam not getting the output correctly, i'll debug. in that case also it is behaving crazy
and i dont have selfi camera in my mobile to send the video ms
hi better you just post your program as comment so that i will clarify your all doubts.
Sir if the value of the variable is filled with garbage value then how come the program is understanding
a=a+1 as at the place of a we have assigned 5 and ww know that 5 is not equals to 5 + 1 that is 6.
Nice explanation Sir