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



Ask a Question

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. Superb article
View Tutorial          By: Raj at 2015-01-29 11:18:22

2. sir i need some simple example of jdbc i cannot un
View Tutorial          By: Velkumar.s at 2013-05-15 07:08:37

3. we know how declare constructor and methods but we
View Tutorial          By: sreekanth at 2011-05-04 02:49:29

4. this helps a lot
View Tutorial          By: Ashar at 2010-04-28 04:47:36

5. i manage to download all the 5 part and compile th
View Tutorial          By: Selva at 2008-04-09 07:53:09

6. Can u tell it can also use for connecting to oracl
View Tutorial          By: Ankur Jain at 2010-08-06 05:31:08

7. how to downlow the different 5 files please !!
View Tutorial          By: Agnin at 2009-06-24 05:29:09

8. send me SMS RECEIVE code please
View Tutorial          By: Butler at 2008-04-26 05:33:40

9. how can we split 12+12 into three tokens like 12,+
View Tutorial          By: arjun at 2012-11-26 11:07:24

10. Please note that the above code does not work with
View Tutorial          By: mk at 2012-02-15 10:59:49