All pastes #16372 Raw Edit

Someone

public c v1 · immutable
#16372 ·published 2005-06-29 18:07 UTC
rendered paste body
#include <stdio.h>char *string(){	char buff[4]="str";     <--- This is stack local storage	return buff;}int main(){	printf("%s\n", string());       <--when printf is actually called, stack local storage                                           for string goes away.}