Performing Operations on String Literals

preview_player
Показать описание
C Programming: Operations on String Literals in C Programming.
Topic discussed:
1) Using a pointer to store the address of the first character of a string literal.
2) Subscripting the string literal.

Music:
Axol x Alex Skrindo - You [NCS Release]

#CProgrammingByNeso #CProgramming #Strings #OperationsOnString #StringsInC
Рекомендации по теме
Комментарии
Автор

solved my doubt on string address stored on pointer. Thank you :)

HarxhPlays
Автор

Nice video thanks for helping students.

muskaan
Автор

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🙏🙇

indranilkarmakar
Автор

Please make some videos on OOP in C++.

spreadingtheknowledgeoflight
Автор

how to modify a charater array using a character pointer in c?

sukshithshetty
Автор

Sir can't we change order og letters???

lovepreet
Автор

Sir, could you explain that why do we use pointers?
Also your videos are very good and helpful, thank you :)

celilylmaz
Автор

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<stdio.h>
int main()
{
char *ptr="Hello";
*ptr="World";
printf(ptr);
getchar();
}
i thought the output will be World.
pls can anyone expplain this

ramarajujaya
Автор

Sir please complete discrete Mathematics

sefrofchan
Автор

Sir can u please make the videos as soon as possible...

roccomannyt
Автор

is *ptr equivalent to ptr[] ?, ptr[]="Hello"; ptr[0]=m; output: mello, means it is working

RajaKumar-yxuj
Автор

#include<stdio.h>

int main()
{
char str[20] = "Hello";
char *const p=str;
*p='M';
printf("%s\n", str);
return 0;
}

This program outputs Mello..
If we can't change string using pointer how this is happening??

minipk
Автор

can someone explain me y we use print("%s", p) but not printf("%s", *p)

ArunKumar-tdxf
Автор

Sir can we print string literal by loop?

compilerrun
Автор

What is read write memory and read only memory?

shivamhawale
Автор

Can't We Use Designator for the String array Sir 🤔🤔😅

rayeesuraj
Автор

Sir can you please do videos on python language sir

gedalaarthika
Автор

char *p="hello";
*p='m';
printf("%s", *p);
when i run this code output is =mello.why? i'm confused .

akashpurbia
Автор

What is read write memory and read only memory?

shivamhawale