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. Hi, i tried this tutorial with my own database and
View Tutorial          By: Dejan at 2015-03-18 13:06:27

2. To "need help":

String s

View Tutorial          By: Mike at 2010-10-14 20:09:31

3. Hi all, i have tried above code, but am getting fo
View Tutorial          By: swathi at 2010-06-24 05:18:28

4. Very Good Tutorial...
Very Good For Beginne

View Tutorial          By: Yatiraj Chakre at 2011-02-02 04:28:57

5. I used a txt file and stored it under my drawable
View Tutorial          By: Sara at 2014-09-18 16:33:30

6. thumbs up!
View Tutorial          By: huang at 2013-03-28 04:02:33

7. Thanks for providing that....
View Tutorial          By: Jothimanickam.M at 2013-04-06 07:35:38

8. Thank you very much for your help,
this co

View Tutorial          By: AA at 2011-09-09 14:24:45

9. plz send java object class with examples
View Tutorial          By: naidu at 2009-07-18 00:00:16

10. Hi Prathamesh,
Maybe the COM port to which

View Tutorial          By: Ramlak at 2007-03-19 00:46:49