We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Segmentation fault

From Esolang
Jump to navigation Jump to search
Not to be confused with Segmentation Fault.

Segmentation fault is Nope. but every "Nope." is changed with a segmentation fault.

Implementation

C

#include <stdio.h>
int main(void)
{
	scanf("");
	char *s = "no use lol";
	*s = 'H';
}

Pascal

function nope(x: int8): int8;
begin
 nope(0);
end;

begin
 readln();
 nope(0);
end.

Python

import ctypes
a=input()
if a==a: ctypes.string_at(0)