during compilation in visual studio c i can not get a correct closed debugging command

You are not passing anything to you’re printf call so it is printing garbage.

To fix you need to pass a as a second argument to printf.

#include <stdio.h>

int main (void)
    int a;
    a = 4;
    printf("a = %d \n", a);
    return 0;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top