I am just starting out in C, i am doing this from what i remembered from the class i take and i just cant find whats wrong with this

#include <stdio.h>

int main() {
	char lol[30] = ("hello everybody");
		printf("%c", lol);

		return 0;

}

when i compile, i just keep getting random symbols.

Use %s to print a string of chars.

thanks buddy. :twisted:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.