String Library Functions - Hindi
Play
Current Time 0:00
/
Duration Time 0:00
Remaining Time -0:00
Loaded: 0%
Progress: 0%
0:00
Fullscreen
00:00
Mute
Subtitles
- subtitles off
Captions
- captions off
- English
- Hindi
Chapters
- Questions posted on Forums
- C and Cpp Tutorials - Hindi
-
i compiled it without any errors but when i ran it i got this error.
code : -#include<stdio.h>#include<string.h>int main(){char str1 [] = "best"; char str2 [] = "bus"; printf("%s", strcat(str1, str2)); return 0;}In terminal -$ gcc strcat1.c -o strcat (without any errors)$ ./strcatoutput : -*** stack smashing detected ***: terminatedAborted (core dumped)
06-07M 30-40S Ravi_Ns
Answer last updated on: Aug. 19, 2024, 4:09 p.m.
-
String function strcmp results
As explained by Ashiwini, Why did the strcmp results come as 1, 0? Will it be different for each case? Is it like true or false? Can you please elaborate on how the strcmp function works?
05-06M 50-60S ruthwikn20@gmail.com
Answer last updated on: Aug. 19, 2024, 3:27 p.m.
-
1First C Program
-
2First Cpp Program
-
3Tokens
-
4Functions
-
5Scope Of Variables
-
6If And Else If statement
-
7Nested If And Switch Statement
-
8Increment And Decrement Operators
-
9Arithmetic Operators
-
10Relational Operators
-
11Logical Operators
-
12Loops
-
13Arrays
-
14Working With 2D Arrays
-
15Strings
-
String Library Functions
-
17Working With Structures
-
18Understanding Pointers
-
19Function Call
-
20File Handling In C
Questions posted on ST Forums:
5404 visits
Outline:
स्ट्रिंग लाइब्रेरी फंक्शन्स -स्ट्रिंग लाइब्रेरी फंक्शन्स क्या हैं। -स्ट्रिंग लाइब्रेरी फंक्शन्स के प्रकार -Strcpy -Strlen -Strcmp -Strcat
Width: | 864 | Height: | 688 |
---|---|---|---|
Duration: | 00:07:24 | Size: | 4 MB |
Show video info