I am quite new to C and i am trying to use a variable twice in one line:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int myAge = 10;
char PL = "C";
printf("I am Rydex (not my real name) and i am %d years old. This was made using %s", myAge, PL);
}
But, when i run it, I get:
I am Rydex (not my real name) and i am 10 years old. This was made using (null)
Instead of the value in the variable "PL" i get "(null)". Can someone please help me?
char PL = "C"? Turn up the diagnostics!