Monday, November 29, 2021

Strings {pata nahi direct concatination bhi hota hai}

 #include<stdio.h>

int main() {
    
    char name[10] = {'s', 't', 'r', 'i', 'n', 'g'};
    printf("%s", name);
    char *str = "Hello World";
    printf("\n");
    while(*str != '\0') {
        printf("%c", *str);
        str = str + 1;
    }


    printf("\n");
    printf("%c", "Hello"[0]);


    printf("\n");
    printf("%c", *("Atul" + 0));


    printf("\n");


    printf("Ashish\
    Madarchod\
    Hai \n");


    printf("Ashish""Madarchod""Tha""Hai""Aur""Rehega");
}

No comments:

Post a Comment

Priority queue deleting elements after ascending inputs Gaand Fadd

 using namespace std; #include<iostream> #define N 5 class pq { public:     int* arr;     int front;     int rear;     pq() {         ...