Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

θελω να βγαλω ενα τραπουλοχαρτο αλλα δεν μου εμφανιζει καν το συμβολο ξερετε πως να το κανω να εμφανιστει

+4 votes
asked Dec 14, 2025 by anonymous
#include <stdio.h>

#include <stdlib.h>

int main()

{

char symbol;

symbol = '5';

printf("%c\n", &symbol);

system("PAUSE");

return 0;

}

1 Answer

+1 vote
answered Dec 14, 2025 by Peter Minarik (101,420 points)
printf("%c\n", &symbol);

is (double) wrong, as you're trying to print the address of symbol interpreted as a character. 

Correctly this should be:

printf("%c\n", symbol);
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...