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. FILE:- lpton.pl......
.....................

View Tutorial          By: Prats at 2013-02-02 17:33:40

2. import java.io.*;
class lastindexof

View Tutorial          By: arya at 2012-11-07 08:37:59

3. New thread: Thread[One,5,main]
How is the s

View Tutorial          By: Venkatesh at 2013-04-21 07:06:15

4. good but very simple program.........
View Tutorial          By: vipul at 2010-03-25 00:33:54

5. Following question to this topic:
- when i

View Tutorial          By: Alistair at 2012-01-14 10:59:52

6. Great Article! Thanks
View Tutorial          By: Rachid at 2011-06-21 13:01:39

7. Good one......
Thanks.

View Tutorial          By: Suresh at 2013-03-14 07:38:45

8. cool.
View Tutorial          By: Fahad Palomo at 2011-08-03 06:19:56

9. we can create reference variable for an abstract c
View Tutorial          By: siva at 2012-08-30 06:03:50

10. help me pls example ng c++ program code using do
View Tutorial          By: diana bernardo at 2010-10-15 23:34:19