Skip to content

Javascript assertion error #3

@sairahul

Description

@sairahul

Getting javascript assertion error for following program.

include <stdio.h>

include <stdlib.h>

include <string.h>

char* getGreeting();
char* str;

int main()
{
printf("hello, world\n");
printf(getGreeting());

return 0;

}

char *getGreeting()
{
str = malloc(2000);
strcpy(str, "hello");

return str;

}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions