Can someone tell me how do i check for null/empty values ?
Does null stands for empty value ? is it returned if the user keyed enter only ? coz i triedCode:fgets(name, sizeof(name), stdin) == NULL
to see how it works, but it didn't print aniting . It just skipped to the next part of my program. Did i get the logic wrong or something ?Code:if (fgets(name, sizeof(name), stdin) == NULL) { printf("no value\n"); }