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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. Really nice explanation...
nice to understa
View Tutorial By: Parth Kansara at 2011-06-21 02:11:52
2. Just what i was looking for. tku.
View Tutorial By: Chow Lim at 2008-03-21 01:46:52
3. when i trying to build the above program it is giv
View Tutorial By: bhagyalaxmi at 2008-10-10 23:45:45
4. That's really daam !!! simple example :) .........
View Tutorial By: akshay sharma at 2011-05-03 04:49:15
5. I have use the above code, Am getting the below er
View Tutorial By: RameshKumar at 2011-07-25 05:02:12
6. how can we split 12+12 into three tokens like 12,+
View Tutorial By: arjun at 2012-11-26 11:07:24
7. i connect my program to my sql and create table. a
View Tutorial By: Santosh Agrawal at 2013-04-08 13:00:56
8. please give me a program of the 12 horoscope using
View Tutorial By: auvx at 2011-08-03 02:02:56
9. hi,im working with a project,in which i have to se
View Tutorial By: gomathi at 2008-12-08 09:04:35
10. Friends i m getting error while intrepreting the e
View Tutorial By: Hanuman at 2014-02-04 14:14:00