Basic C Questions


#include <stdio.h>

int main()
{
    char *p = "rak";
    *p = "dkfg";
    printf("p = %s", p);
}

Output: Segmentation fault will happen.

Reasons for a C++ program crash



How to find Segmentation Error in C & C++ ? (Using GDB)

Segmentation Fault (SIGSEGV) vs Bus Error (SIGBUS)


Can you design Netflix in 45 minutes?













































































Comments

Popular posts from this blog

[16 Feb 2020] Given an array where every element occurs three times, except one element which occurs only once.

Which data structure is used in redo-undo feature?

Important Program Collection