Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Funny Pictures MCA Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter




C Program to accept name , class and marks of 10 students with the use


Posted Date: 24 Mar 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology

Posted By: ashish singh       Member Level: Diamond
Rating:     Points: 2



/*Program to accept name , class and marks of 10 students with the use
of structure with array of pointer and also print them.*/
#include
main ( )
{
struct {
char name[20];
int class;
int marks;
}*rec[10];
int i;
for ( i=0;i< 10;i++ )
{
printf ( "Name:" );
scanf ( " %s", rec[i]->name );
printf ( "Class:" );
scanf ( " %d", &rec[i]->class );
printf ( " Marks:" );
scanf ( " %d", &rec[i]->marks );
}
printf ( "Name\tClass\tMarks\n" );
for ( i=0 ; i<10 ;i++ )
{
printf ( " %s\t" , rec[i]->name );
printf (" %d\t" , rec[i]->class );
printf ( " %d\n" , rec[i]->marks );
}
}




Responses

Author: Avdhut Sonpethkar    26 May 2008Member Level: Gold   Points : 2
hey cool infor that means we can post program too


Author: Ebrahim    26 May 2008Member Level: Silver   Points : 2
Good logic.


Author: Vidya    26 May 2008Member Level: Diamond   Points : 2
simple and nice c pgm


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: C Program for grade which is based on the marks
Previous Resource: C Program for addition and deletion of nodes and edges in a graph
Return to Discussion Resource Index
Post New Resource
Category: Computer & Technology


Post resources and earn money!
 
Related Resources



Watch TV Channels
  • Watch Asianet TV online
  • Kairali TV in Internet
  • Surya TV online
  • Amritha TV Channel

  • Contact Us    Privacy Policy    Terms Of Use   

    SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.