Invitation to Attend “Connect, Simulate and Innovate using Arduino on Cloud”, an awareness programme
If you are not an organiser or invigilator of the Subscribed college, please register using this Google form
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?
132 visits
Outline: -स्ट्रिङ्ग् लैब्ररि फ़ङ्क्षन्स् -स्ट्रिङ्ग् लैब्ररि फ़ङ्क्षन्स् नाम किम्? -स्ट्रिङ्ग् लैब्ररि फ़ङ्क्षन्स् इत्यस्य प्रकाराः -Strcpy -Strlen -Strcmp -Strcat
-स्ट्रिङ्ग् लैब्ररि फ़ङ्क्षन्स् -स्ट्रिङ्ग् लैब्ररि फ़ङ्क्षन्स् नाम किम्? -स्ट्रिङ्ग् लैब्ररि फ़ङ्क्षन्स् इत्यस्य प्रकाराः -Strcpy -Strlen -Strcmp -Strcat
Show video info
Pre-requisite