Comment on Tutorial - Pointers to Structures example program in C By Charles



Comment Added by : niru

Comment Added at : 2012-07-21 07:26:27

Comment on Tutorial : Pointers to Structures example program in C By Charles
#include<stdio.h>
void main(){
struct tag{
int a;
char *name;
};

struct tag t1;
printf("enter num and name\n");
scanf("%d %s",&t1.a,t1.name);
printf("%d %s",t1.a,t1.name);
}

whats wrong with the above program?


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Nice Article....
View Tutorial          By: Vipin Joshi at 2008-04-13 15:35:42

2. Very usefull tutorial, but I've got a question:
View Tutorial          By: Wolfgang Marcos at 2011-05-16 11:12:19

3. Been hearing about this for quite long. This gives
View Tutorial          By: Lolip at 2011-08-24 08:40:20

4. thnks a lot...
View Tutorial          By: iti at 2015-06-03 07:05:24

5. it was nice and helpful for me.
View Tutorial          By: mayank at 2015-03-01 08:35:48

6. I want more example of bufferedReader.
View Tutorial          By: Romulado Bacor at 2011-11-25 01:18:57

7. i want to the out put is
calander

View Tutorial          By: sampath at 2011-07-18 08:30:01

8. Hi Chandra, you will have to download the winrar t
View Tutorial          By: Ramlak at 2008-08-08 00:14:40

9. Muchas gracias por tu codigo. Me ayudo a resolver
View Tutorial          By: David Nava at 2011-04-08 03:29:38

10. good!
View Tutorial          By: rey.ryan at 2009-03-14 05:49:28