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



Subscribe to Tutorials

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. i can understand easily what is isset but i am not
View Tutorial          By: sebestiraj at 2010-04-09 00:09:36

2. Nice example. I think this is more idiomatic tho'.
View Tutorial          By: John Morrison at 2010-03-28 14:55:07

3. The following exception are raised in send sms in
View Tutorial          By: Vikram Subbiah at 2010-04-12 02:09:36

4. Please let me know the SMSConnector number of any
View Tutorial          By: Chandra Shekhar at 2009-04-01 00:21:54

5. any one can send serial port communication using n
View Tutorial          By: prakash at 2013-07-01 15:44:48

6. what we have to write in simple comparator class
View Tutorial          By: shiva at 2015-04-18 09:19:17

7. Hey,
The above tutorial is for SQL server,<

View Tutorial          By: Anil at 2012-02-07 15:58:06

8. what items do i add?
View Tutorial          By: Camo at 2015-09-30 23:02:10

9. This is helpful for newbies like me :P
View Tutorial          By: Mustafa at 2011-06-18 23:40:27

10. This tutorial is really good for beginners.It help
View Tutorial          By: Prabhat Kumar at 2007-04-09 05:02:02