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. very nice keep sharing thanks a lot
View Tutorial          By: Adeel at 2014-09-24 09:50:00

2. I'm coding a webservice and this is exactly what I
View Tutorial          By: Cristian at 2014-11-14 12:52:34

3. if i want to write my gmail address how can i prov
View Tutorial          By: asmcn at 2011-12-27 19:40:49

4. Session Bean = client data is maintained upto pred
View Tutorial          By: Chetankumar at 2012-05-19 11:12:17

5. I did not understand it. please give one example e
View Tutorial          By: farhaan at 2008-03-20 12:06:11

6. Hi, If any body was able to send the message suces
View Tutorial          By: Pradeep Singh Chouhan at 2011-03-02 23:03:05

7. thanks
View Tutorial          By: snooker at 2013-02-04 19:45:40

8. Hi you will run this program just as you run any o
View Tutorial          By: Steven at 2008-10-14 09:03:28

9. yes it is good example for abstract classes.Thanks
View Tutorial          By: Nilesh Chavan at 2010-07-17 02:24:42

10. Just what i was looking for. tku.
View Tutorial          By: Chow Lim at 2008-03-21 01:46:52