Nice video thanks for helping students.
great lesson !!
Please... It is my humble request to start control system as soon as possible... We need neso academy explanation on all ece subject. Salute to neso team.... Thanks🙏🙇
Please make some videos on OOP in C++.
can someone explain me y we use print("%s",p) but not printf("%s",*p)
Gorgeous ❤️😍 video sir
how to modify a charater array using a character pointer in c?
Thank you bro
Sir can't we change order og letters???
Sir please complete discrete Mathematics series.....
Sir, could you explain that why do we use pointers?
Also your videos are very good and helpful, thank you :)
Very best video
Some good stuff
bhaiya, u said that character pointer has been allocated read write memory ,so the same pointer can point to some other string literal.then why i am getting error in the below c program:
#include
int main()
{
char *ptr="Hello";
*ptr="World";
printf(ptr);
getchar();
}
i thought the output will be World.
pls can anyone expplain this
Removing the * operator from 2 nd line will solve the problem .As by using * will mean that change the value at position of 'H' which is not possible as it is a string literal...
Sir can u please make the videos as soon as possible...
is *ptr equivalent to ptr[] ? , ptr[]="Hello"; ptr[0]=m; output: mello ,means it is working
Sir can you please do videos on python language sir
What is read write memory and read only memory?
RWM means you you can read or write the value from/of the memory. Let´s say you store value 1. RWM enables you to check the value and at the same time you are able to rewrite it for example to 2. ROM (read only memory) on the other hand only enables you to check the value from the memory. So you store value 1. Then you can check what´s the stored value. You can´t however rewrite it, change it.
Can't We Use Designator for the String array Sir 🤔🤔😅
#include
int main()
{
char str[20] = "Hello";
char *const p=str;
*p='M';
printf("%s
", str);
return 0;
}
This program outputs Mello..
If we can't change string using pointer how this is happening??
char *p="hello";
*p='m';
printf("%s",*p);
when i run this code output is =mello.why? i'm confused .
string cannt be modified,,,,,,,,,,,,,,,,,what u have done here you just modified a string and that cant be allowed in c alngg
@@hans_tech0015 but here at 3:10 he is saying we can't alter them
What is read write memory and read only memory?
read write memory is a memory where you can give an input as well as read. And read only is where you can only see the output and cannot give input
solved my doubt on string address stored on pointer. Thank you :)