ANIMATE 2025 is here! 2D/3D animation hackathon using Synfig Studio and Blender. For more details, Click here!
This is a sample video. To access the full content, please Login
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)
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?
1497 visits
Outline:ਸ੍ਟ੍ਰਿੰਗ ਲਾਇਬਰੇਰੀ ਫੰਕਸਨ ਸ੍ਟ੍ਰਿੰਗ ਲਾਇਬਰੇਰੀ ਫੰਕਸਨ ਕੀ ਹਨ| ਸ੍ਟ੍ਰਿੰਗ ਲਾਇਬਰੇਰੀ ਫੰਕਸਨ ਦੀਆਂ ਕਿਸਮਾਂ -Strcpy -Strlen -Strcmp -Strcat
ਸ੍ਟ੍ਰਿੰਗ ਲਾਇਬਰੇਰੀ ਫੰਕਸਨ ਸ੍ਟ੍ਰਿੰਗ ਲਾਇਬਰੇਰੀ ਫੰਕਸਨ ਕੀ ਹਨ| ਸ੍ਟ੍ਰਿੰਗ ਲਾਇਬਰੇਰੀ ਫੰਕਸਨ ਦੀਆਂ ਕਿਸਮਾਂ -Strcpy -Strlen -Strcmp -Strcat
Show video info
Pre-requisite