strcat

    6Ciepło

    5Odpowiedz

    Weźmy następujący program: #include <iostream> #include <cstring> using namespace std; int main() { char a[8] = "Hello, "; char b[7] = "world!"; strcat(a, b); cout << a;

    10Ciepło

    7Odpowiedz

    #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]){ int fir; //badly named loop variable char *input[] = calloc(strlen(argv), sizeof