i am not getting output for this program. // Pointer and structure I want get output as 1Jatin. but for refreshing pointer by using structure. i cant do that. It working as int and float. but not as int and char. any one please solved out this.
#include <stdio.h>
struct name{
    int a;
    char b;
};
int main(){
    struct name *ptr ,p;
    ptr = &p;
    printf("Enter integer:");
    scanf("%d", &(*ptr).a);
    printf("Enter name:");
    scanf("%s", &(*ptr).b);
    printf("Displaying:");
    printf("%d%s",(*ptr).a,(*ptr).b);
    return 0;
}
 
     
    