Thanks a lot sir, your videos are life saving !! By the way can you provide the code "express a number as a sum of three/four prime numbers"? e.g:: 19=3+5+11 or 17=2+3+5+7
sir ur vidios are awsome but going throgh nielit questions papers i m getting imense confused in c programming . while trying to sole pz tel me 1.5 For the following definitions char a[] = "Hello World!"; int i; Which of the following loop will print the output a s Hello World! A) for (i = 0; a[i] != '/0'; i++) printf("%s", a[i]); B) for (i = 0; a[i] != '/0'; i++) printf("%c", a[i]); C) for (i = 0; a[i] != '\0'; i++) printf("%s", a[i]); D) for (i = 0; a[i] != '\0'; i++) printf("%c", a[i]); and in the above programme in case of A if i put '/0'is repalced by any character such as // it gets infinite loop and if i put '\0' it gets only output 11 times ..why as i did in code blocks void main() { char a[] = "Hello World!"; int i=0; while(a[i]!='/0') { printf("%d",i); printf("%s
", a); getch(); } }and pz explain all the optoion..
sir but mera to pura output show ho raha h means after 17+17 ke bad v show ho raha h but apke programm m to nahi hua ta jbki mn apka hi program execute kara ta kya problem h jo aisa show ho raha h
sir when we have to use return 0 and return 1 . I saw on google it say that in main() it's meaning is different and in function it's meaning is different but i did not understand totally so please explain in simple manner
@@rangamdeka6178 you need to check from (n+1)th number, for nextPrime. you could have use while loop too, in that case you need to increment n outside loop. here do while incrementing n without checking condition at first.
Im really sorry I know I should have watched the whole video. Nevermind me I hava a tendency to get mad at things very easily. By the way you are the only Indian teacher I can rely on.
well I think u don't have proper knowledge of do while loop. In do while loop If the condition is true, the flow of control jumps back to the do portion. what we want to get here is next prime so if number is not prime jump back to do part and increment number by 1. If number is prime then jump out of the loop and return that next prime number. Have a nice day :-)
Sir thanks alot for these courses ....
Amazing explained this programme thank you for this 👍👍👍👍
superb explanation technique thanks.
Great explanation sir! Loved it.. Aap bahat achche kaam kr rehe hoo.. Free mein knowledge de rehe hoo... Take a bow.. Dil se..
Sir you are genius !!!
Thanks a lot sir, your videos are life saving !! By the way can you provide the code "express a number as a sum of three/four prime numbers"?
e.g:: 19=3+5+11 or 17=2+3+5+7
Thanx A lot Sir... I'm Wating for this Video.. You are Great sir..
OMG⚡ what an explanation!!!!
wow, that feels great. when you code it yourself.
All I needed to watch the first 5 minutes. and it is done
That's the main logic
yeah
Thanks alot Sir. It's really helped me alot
Can u help me after sir c practice session where should I practice
Source
i love to listen you.....sir..u r awesome
thank you it was useful, thanks
Sir, optimise the code. It may give TLE runtime error. The Logic is totally fine.
thanks a lot sir
Sir 2 is a prime number and 3 is a composite number
amazing
Thanks a lot of your videos
I wish this was in English.. Could you add a translation?
Bro, 2 is prime number.
Sir
return(0)
return(1)
Q mention kiye?? Last ka function mein
I want this video in english explanation
sir how to calculate electricity bill in c language sir i am beginner so plz make video for this
sir can you explain this code in python.......
whether I search for programs urs will come first but I dont know hindi can u pls explain in English also pls😔
Function se or program btadete sir such as fabonacci series
Sir why we have returned (0) and (1) in isprime function and also we dont have checked if x is prime or not ...
0 = false and 1= true
i really needed it . (-:
Sir it is not working for 11 .. bcz 11 is not the sum of any two prime numbers
Sir Ji ne aakhir kaar apna name add to Dictionary kr hi diya.😂😂
sir ur vidios are awsome but going throgh nielit questions papers i m getting imense confused in c programming . while trying to sole pz tel me
1.5
For the following definitions
char a[] = "Hello World!";
int i;
Which of the following loop will print the output a
s
Hello World!
A)
for (i = 0; a[i] != '/0'; i++)
printf("%s", a[i]);
B)
for (i = 0; a[i] != '/0'; i++)
printf("%c", a[i]);
C)
for (i = 0; a[i] != '\0'; i++)
printf("%s", a[i]);
D)
for (i = 0; a[i] != '\0'; i++)
printf("%c", a[i]);
and in the above programme in case of A if i put '/0'is repalced by any character such as // it gets infinite loop and if i put '\0' it gets only output 11 times ..why as i did in code blocks
void main()
{
char a[] = "Hello World!";
int i=0;
while(a[i]!='/0')
{
printf("%d",i);
printf("%s
", a);
getch();
}
}and pz explain all the optoion..
Ok
sir but mera to pura output show ho raha h means after 17+17 ke bad v show ho raha h but apke programm m to nahi hua ta jbki mn apka hi program execute kara ta kya problem h jo aisa show ho raha h
sir when we have to use return 0 and return 1 . I saw on google it say that in main() it's meaning is different and in function it's meaning is different but i did not understand totally so please explain in simple manner
Can you explain you're problem once again I can't understand your q.
@@Shahed1823 Bro why have Sir used do while loop can you explain?
@@rangamdeka6178 you need to check from (n+1)th number, for nextPrime.
you could have use while loop too, in that case you need to increment n outside loop. here do while incrementing n without checking condition at first.
❤
Your videos are really good but you made a mistake, 2 is a prime number
Im really sorry I know I should have watched the whole video. Nevermind me I hava a tendency to get mad at things very easily.
By the way you are the only Indian teacher I can rely on.
Could you plz provide Video lecture on Computer organisation and architecture, my preferred book in structured computer organisation by tenenbaun
Visit www.mysirg.com and see computer fundamentals course
Sir, when i am going to compile this program on turbo, system is asking prototype of nextprime and isprime function. pls. advise.
In c++ you have to include the function prototype top of the code.
Function ko declare nhi kiya shi se
Sir i didnt understand that while(!isPrime(n))
well I think u don't have proper knowledge of do while loop. In do while loop If the condition is true, the flow of control jumps back to the do portion. what we want to get here is next prime so if number is not prime jump back to do part and increment number by 1. If number is prime then jump out of the loop and return that next prime number. Have a nice day :-)
@@haveagreatdaywithpeace thankuuuu👍
@@haveagreatdaywithpeace but it does not work properly
Thanks sir
Sahi sums📲📲
Error show ho raha hai
please explain in English
what if n
make else statement, "Prime Sum not found!".