C programming Bangla Tutorial 5.187 : String | copy string using strcpy()

preview_player
Показать описание
All C programming videos:
Рекомендации по теме
Комментарии
Автор

ভাইয়া আমি মাঝেমধ্যে ভাবি আপনি এত সুন্দর ভাবে কিভাবে শেখাতে পারেন! এবং অনেক গর্বের সঙ্গে একটা ফিল অনুভব করি যেটা হচ্ছে "বাংলাদেশেও এমন মানুষ আছে?" 💓 সেই প্রথম থেকে প্লেলিস্টের ভিডিও গুলা দেখে আসছি। এটা ১৮৬ নম্বর ভিডিও। এত সুন্দর ভাবে এর আগে কখনো আমি কারো কাছ থেকে শিখতে পারিনি । You are the best programming teacher of my life. Take love from my heart and I pray for you you will be greatest successful man

nsnowaz
Автор

You're doing a thankless job sir ❤❤❤ Making things easier for so many students...

Jahid
Автор

Vhaia aonr eirokom alada alada topic e choto choto video gulo dekhe bujhte onek subidha hoy.. alada alada kore topic wise iccha moto bujha jay.. thanks vhaiya

sumyiaarefinlamia
Автор

you are very helpful teacher...i share you r channel in my facebook...

_SHAHEDULALAM
Автор

love you brother .keep it up.best wishes for u.

Jewelbiswas
Автор

via sobkichoy onek valo vabay bojcci khob valo lakcha>>>

TeachRSMusic
Автор

#code without strcpy() function:
#include<stdio.h>
int main(void)
{
char source[30], target[30];
int i;
gets(source);
//getting value for source
for(i = 0; source[i] != '\0'; i++){
target[i] = source[i];
//copying value from source to target
}
target[i] = '\0'; // it will close the "target" string(Unless you will see some garbage value after target string)
puts(target);
//printing value
return 0;
}
thanks me later :)

marufju
Автор

Sir without strcpy er videota dile onek valo hoto😊😊

mustafizsakin
Автор

You'll need to declare string.h file in the header file section, otherwise strcpy wont be recognized.

Konokdrums
Автор

Without strcpy()

#include<stdio.h>
#include<string.h>
int main()
{
char s1[50] = "Alabama";
char s2 [50];

int i;

int l1 = strlen(s1);

for (i=0; i<=l1; i++)
{
s2[i] = s1[i];
}
// s2[i] = '\0';
printf("%s", s2);




}

dayztimeap
Автор

sir
kalke cse xm e apni e vorsha <3

tausifkhan
Автор

dear sir, , , , please upload a video about replace a string

MdYousuf-gwdn
Автор

#include<stdio.h>
#include<string.h>
int main(){

char a[30]="seajon";
char b[30];

strcpy(b, a);
printf("%s\n", b);

return 0;
}

seajon
Автор

Sir code block er version same e mone hocche...kntu amr library function hishebe strcpy show hocche na....bole declare kora nei scope e..

__Little_Terrorist__
Автор

#include<iostream>
#include<conio.h>
// header file for string
#include<cstring>

using namespace std;

int main()
{
char str[]="Rezaul Karim", target[20];

strcpy(target, str);

cout << "Source string = " << str<<endl;
cout << "Target string = " << target<<endl;
}

mdrezaulkarim
Автор

Dear sir....pleace uplode a vedio string useing without strcpy()

skmohibullahalmahin
Автор

sir ageh vedio te apuni char s1 [] leklan but aei ter somay char s1 kno leklan nah, , and printf kore deln s1 bujlam nah, , aktuo bujie bolben sir

sharminsultana
Автор

sir apnar moto code korle run hoi, but warning dakhai 5.187

atiqurrahman
Автор

sir without strcpy ai video ta pacci na???

amerbangla
Автор

//without strcpy function...

#include <stdio.h>
#include <string.h>

int main(void)
{
char name[30], name2[30];

// with library function strcpy...
// printf("Enter your String: ");
// gets(name);
// strcpy(name2, name);
// printf("%s\n%s\n", name, name2);

// without library function..

printf("Enter your String: ");
gets(name);

int i = 0, j = 0;

while (name[i] != '\0')
{
name2[j] = name[i];
i++;
j++;
}
name2[j] = '\0';

printf("%s\n%s\n", name, name2);

return 0;
}

stupid_coder
welcome to shbcf.ru