String Library Functions - English
- subtitles off
- captions off
- English
This is a sample video. To access the full content,
please
Login
- Questions posted on Forums
- C and Cpp Tutorials - English
-
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:
26325 visits
Outline:
String Library Functions What are string library functions. Types of string library functions -Strcpy -Strlen -Strcmp -Strcat
Width: | 864 | Height: | 688 |
---|---|---|---|
Duration: | 00:07:28 | Size: | 3.9 MB |
Show video info