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. Good Example
View Tutorial          By: Naresh at 2015-02-03 07:41:40

2. Yesterday afternoon, I tried a lot of different su
View Tutorial          By: Leo at 2011-07-26 04:19:15

3. can you give me tutorial how to copy phonebook to
View Tutorial          By: rico at 2010-04-04 21:07:57

4. it's real nice explanation
View Tutorial          By: Shreya at 2010-09-10 11:24:11

5. int myColor = 0xFFFF00;
paint(Graphics grap

View Tutorial          By: krishna mohan at 2010-02-01 05:22:12

6. I like this tutorial, it is self explaining. good
View Tutorial          By: Nikia at 2013-01-25 20:04:30

7. example required
View Tutorial          By: revathy at 2009-09-03 01:53:04

8. it is gooo...very helpful to know the basics
View Tutorial          By: srikanth at 2010-08-24 00:38:57

9. it's very nice answer
View Tutorial          By: ahmedmohsen at 2011-12-31 19:26:09

10. very simple explanation......
easily unders

View Tutorial          By: saurabh at 2009-04-17 16:02:30