Home Tutorialhelp Comment structures with pointer as components (user input)

 
 

Comment

joshua
structures with pointer as components (user input),
April 8, 2010 at 2:43 PM

#include <stdio.h>

struct people {
char* name;
} person, *ptrPerson;

int main() {
ptrPerson = &person;
printf("\n\nNeuer Name eingeben: ");
scanf("%d",ptrPerson->name );
printf("\nName: %d\n\n", person.name);
getch();
return 0;

}
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
C++

C Tutorials
information through structure pointer.    C Structure example Structures in C defines the group of contiguous... C Tutorials       

C Tutorials

C Structure Pointer
C Structure Pointer       This section illustrates you the concept of Structure Pointer in C. You... on pointers to structures. If p is a pointer to a structure and m is a member 

Programming Tutorials

Pointer and Structure in C
Description: In this tutorial you will see how pointer is used with structure. This is a very important example because all data-structure program work... the address of object to p *p allow the pointer to access the objects *p.roll is same 

Java Beginners

C Structure
C Structure  Respected sir, Can a structure in C contain a pointer to itself ? if yes means how sir ? plz help me sir 

Design concepts & design patterns Questions

structures
structures  what will be the size in 64 bits of this structure struct{ int i; char c; }node 

Blog

Site map - C Tutorials
Structure example | C Structure Pointer | C Temperature Converter | C...; C Tutorials  | Java Tutorials | PHP Tutorials  | Linux...; | XPath Tutorials | HTML Tutorials C Tutorial Section C String Reverse 

Programming Tutorials

C++Tutorials
other tutorials, such as C++: Annotations by Frank Brokken and Karel Kubat...; The CPlusPlus Language Tutorial These tutorials explain the C++ language...; The Function Pointer Tutorials Function Pointers provide some 

Programming Tutorials

Pointer in C
operator 3    ->   structure pointer...; inside. The address variable c is 0X3000. And a pointer variable cptr of char data-type. The cptr pointer variable having the address of c variable rather 

C Tutorials

C Structure example
C Structure example       This section illustrates you the concept of structure in C. Structures in C defines the group of contiguous (adjacent) fields, such as records 

IoC Questions

c-language pointer functions
c-language pointer functions  what is the execution process of character pointer functions with example 

Development process Questions

Function pointer in c
Function pointer in c  What is the difference between function call with function pointer and without function pointer(normal function call 

Java Tips and Examples

Java vs. C
, C doesn't have a graphical user interface (GUI), and C doesn't have any.... For example, expandable arrays, many data structures, etc. In C it would... used in C programs anyway. There are no pointer operators (&, *, -> 

Development process Questions

How to read user input in C++
How to read user input in C++  How can i get an input from the users in C++?   You can use the standard input "cin" to get the input from user.. For example: int age; cin >> age 

Development process Questions

C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser 

Development process Questions

c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

C++
C++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

C#
C# register form  i want to generate a user id automatically after filling their register form and i want to show their id to their email? please reply me soon 

Free C++ books

C/C++ Programming Books
C/C++ Programming Books         Visual C++ 6 Unleashed Visual C++ 6 Unleashed provides comprehensive coverage of the core topics 

General

Placing components on each other - Java Tutorials
Placing components on each other 2002-02-15 The Java Specialists' Newsletter [Issue 041] - Placing components on each other Author: Dr. Heinz M. Kabutz... been playing golf instead of writing newsletters *blush*) Placing components 

Programming Tutorials

C++GraphicsTutorials
C++ Graphics Tutorials     ... in this document is correct. C/C++ Windows programmers who want to learn... MFC.      OpenIL in Dev-C++ OpenIL 

Java Tips and Examples

Java Data Structures
Java NotesJava Data Structures Term "Collections". The overall term for Java's data structure facilities is Collections, a term is is an alternative to the more common Data Structures. In addition to describing general data 

Programming Tutorials

Introduction to Data Structures
Data Structure in C A memory play a vital role in c because all variable you...() funtion in C. In this tutorial you will learn about Pointer, Linked List... of pointer. A memory can be categories in following segments Text Segment 

C Tutorials

C Pointer to a function
C Pointer to a function       In this section, you will learn how to use 'Pointer'  function in C. C provides a special feature of  pointer to a function 

Free C# books

C and C++ books-page3
to structure the system into components. Most of the functions in C++ are members... C and C++ books-page3       C for C++ programmers Before there was C++ there was C 

Free Books

C and C++ books-page10
. Of the three languages, C allows the most precise control of input and output. C... C and C++ books-page10       The programming language C As a programming language, C is rather 

Java Beginners

c c++ - Java Beginners
c c++  Write a Multi-user chat server and client  Hi Friend, Please visit the following link: http://www.roseindia.net/chatserver/index.shtml Hope that it will be helpful for you. Thanks 

Java Beginners

c or c++ - Java Beginners
c or c++  Write a program for a two user chess game(Users must be on different systems)? please send me this source code to my mail id with step by step explanation 

Java Beginners

null pointer
null pointer  dear sir , what is mean by null pointer in c 

Free Books

C and C++ books-page13
C and C++ books-page13       Data Structures and Algorithms with Object-Oriented Design Patterns in C++ This book was motivated by my experience in teaching the course 

Java Beginners

Change case in C language
If user is typing b5678 ,i want to store as B5678. (C)for input i am using...Change case in C language  I want to right in .dat file through structure.For this i have defined following: struct student //structure defination 

HTML Questions

pointer
pointer  CONSTRTUCT A STRUCTURE FOR EMPLOYEE RECORD THAT CONTAINS A PERSON'S NAME, AGE, EMPLOYEE AND SALARY.WRITE A STATEMENT THAT DECLARES A VARIABLE empInfo and a pointer emPtr of type EMPLOYEE.then use the pointer to display 

Ajax Questions

c#
c#  how to find out the size of the BMP image in C 

CVS Questions

C++
C++  How can i write this in dev c 

Development process Questions

C++
C++  How can i write this in dev c 

Java-Tutorials

The JDK Directory Structure
directory structure. Components of the JDK directory structure...Directory structure of JDK Welcome to Java tutorial series. In this lesson, you will learn about the directory structure of Java Development Kit, JDK. Since 

General

C Tutorials
C       Java... the location of the user defined class and the packages in a Java program...;      JSP custom tags JSP custom tags are the user 

IoC Questions

C Concepts
C Concepts  respected sir, Can I use a void ** pointer as a parameter so that a function can accept a generic pointer by reference? I have a function extern int f(int *); which accepts a pointer to an int. How can I pass 

Free C++ books

C and C++ books-page11
C and C++ books-page11       The Industrial Strength of C++ In early 1990, C++ was chosen... by the two of us, working as the C++ support group. Then, in 1991 

Development process Questions

c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator 

Ajax Questions

c#
c#  how to find out the size of the BMP image 

Development process Questions

c++
c++  write a programme that calculates the area and circumference of a rectangle 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Design concepts & design patterns Questions

C++
C++  Trace the bubble sort using the following integers,which represent the elements in an array. 5,7,3,8,6,7,3 

Development process Questions

c++
c++  write a prgrm tht accepts 3 integer values,then with a function to swap the values 

Java Beginners

C++
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack 

Applet Questions

c programming
c programming  write a program to input five numbers by using while loop in c programing 

Java Beginners

C#
C#  i need a code that will make program perform the basic operations upon the data Listview save, update and cancel 

Development process Questions

C++
C++  I have been asked to write a programme that gets five values,gets the sum,average and product please help me 

IoC Questions

C Language
C Language  Respected Sir, How can I determine the byte offset of a field within a structure? How can I access structure fields by name at run time? please help me sir . Thank you sir 

Training

Java Training and Tutorials, Core Java Training
structure similar to the syntax of C++ so it would be easy for C++ programmers... Structure:  sdk structures... Java Training and Tutorials, Core Java Training Introduction to online 

Java Beginners

C Language
C Language  Respected sir, Why does sizeof report a larger size than I expect for a structure type, as if there were padding at the end? help me sir 

UML Questions

c++
c++  Consider the following function: int funcExercise7(int list[], int size) { int sum = 0; for (int index = 0; index < size; index++) sum = sum + list[index]; return sum 

UML Questions

c++
c++  Consider the following declarations: class xClass { public: void... private members does class xClass have? c. How many constructors does class xClass.... Write a C++ statement that prints the values of the data members of the object 

Development process Questions

c++
c++  .write a program that accepts 5 subjects of a student,it should have a function to calculate the average & another function to grade.grade should be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70 

Development process Questions

C++
C++  write a prgrm tht gets five values,gets the sum,average &...; #include <conio.h> void main() { clrscr(); int a,b,c,d,e,sum; float average...;>b>>c>>d>>e; sum=a+b+c+d+e; average=sum/5; product=a*b*c*d 

Development process Questions

c++
c++  write a prgrm tht calculates the surface area of a cylinder.the prgrm shld find the circumfrance and have a function that calculates the fadius and another to calculate the surface area 

Spring Framework Questions

c++
c++  write a program that gets a key or character from the keyboard and displays it ASII code in decimal, hexadecimal and binary form.It must also give a description of the key pressed 

UML Questions

c++
c++  Consider the following declarations: class xClass { public: void func(); void print() const; xClass (); xClass (int, double); private: int u... private members does class xClass have? c. How many constructors does class xClass 

CVS Questions

c++
c++  Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo... name with the minimum GPA 7) Display Student GPAs as Letter Grades (A, B, C, D 

UML Questions

c++
c++  Characterize the following algorithm in terms of Big-O notation. for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) for (int k = 1; k <= n; k++) cout << i + j + k 

UML Questions

C++
C++  . Consider the definition of the following class: class CC { public: CC(); //Line 1 CC(int); //Line 2 CC(int, int); //Line 3 CC(double, int); //Line 4 . . . private: int u; double v 

Development process Questions

c++
c++  .write a prgrm tht accepts 5 subjects of a student,it shld hv a function to calculate the average & another function to grade.grade shld be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70 

UML Questions

c++
c++  Characterize the following algorithm in terms of Big-O notation. Also find the exact number of additions executed by the loop. (Assume that all variables are properly declared.) for (int i = 1; i <= n; i++) sum = sum + i 

UML Questions

c++
c++  Write the definition of the class dayType that implements the day of the week in a program. The class dayType should store the day... on an object of type dayType: a. Set the day. b. Print the day. c. Return the day 

Free C# books

C and C++ books
In this section for example-based C tutorials that introduce you to ODBC... C and C++ books       Page 1 This is the online version of The C Book, second edition 

Free Books

C and C++ books-page9
C and C++ books-page9       The C++ Thinking second edition This book is a tremendous... seen to date. Thinking in C++ patiently and methodically explores the issues 

Development process Questions

c++
c++  write a programme that calculates the area and circumference of a rectangle   #include<conio.h> #include<iostream.h> class rect { int l,b; int area; int peri; public: void get_rect() { cout<<"\n 

Java Beginners

c++
c++   Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9, 0, 4, 2, 6. Second, assume integer variables "a," "b" and "y" with values of 3, x.size()-5 and 0, respectively. Third, assume a for-loop header which: 3.1 

Development process Questions

c program
c program  WAP to show the area of a perimeter of a rectanglar by using input command 

Java Beginners

data structures - Java Beginners
data structures  I have got a project of the subject 'data structures and C++' and the topic is 'types of graphs'. please guide me on this topic and help me finding material of this topic 

IDE Questions

C program
C program  hi, here is my question: Create a structure to specify data on students given below: Roll number, Name,Department, Course, Year... a function to print names of all students who joined in a particular year. (c 

Java Beginners

pointer to a reference
pointer to a reference  pointer to a reference in C++    #include <iostream> using namespace std; void foo1(int& x) { int* p = &x; *p = 123; } void foo2(int* x) { int 

Java Beginners

pointer to a reference
pointer to a reference  pointer to a reference in C++    #include <iostream> using namespace std; void foo1(int& x) { int* p = &x; *p = 123; } void foo2(int* x) { int 

Free Books

C and C++ books-page12
might want to go through other tutorials, such as C++: Annotations by Frank... C and C++ books-page12       Introduction to C programming  This section is designed 

Development process Questions

C programming
C programming  i am beginner in C my text book says getchar...) { int c; while((c=getchar())!=EOF) { putchar(c); return 0; } i understand that the use of while loop and EOF function is that input is allowed till ctrl 

Java Beginners

C Programming
C Programming  hi,how can i write a program in C programming to place reservation in air plane from the menu let the user to inter his/her gender(W or M)and draw seats by using ascii codes and choose where he/she will sit 

Free C# books

C and C++ books-page1
C and C++ books-page1       The C Books This is the online version of The C Book, second... is no longer in print, it's content is still very relevant today. The C language 

Java Beginners

programming c#
menu option should allow the user to capture input. input should be stored...programming c#   create and make use of at least one class.... at least one menu option should allow the user to view a report based 

Java Beginners

java & c
java & c  why c language is called top down approach? why java is called bottom to top approach?   In C, compilation stats from the very top of the program code. In Java, on the other hand, we have user defined data 

Eclipse Plugins

EasyEclipse for C and C++
EasyEclipse for C and C++       EasyEclipse for C and C++ is all you need to start developing C and C++ code with Eclipse. There are currently 28 comments 

C Tutorials

C Multiple Indirection
Indirection. C permits the pointer to point to another pointer. This creates many layers of pointer and therefore called as multiple indirection. A pointer... C Multiple Indirection    

Java Tips and Examples

For C++ programmers
Java NotesFor C++ programmers Java inherited many features from C... always start with an upper case character, Methods (called functions in C...) files in Java. No header files. import is the rough equivalent of C 

IDE Questions

c programme
a program in C that where the user will input an initial height(in metres) and also...c programme  When we drop a ball on a rigid surface it bounces from the surface upto a height which can be expressed as some percentage of its 

HTML Questions

based on C#
C# Alert message  1) Write the related code for the following Form based on the Criteria given below: a) When user will not enter Employee Name... user provide all the details a message should popup ??The Details have been 

iPhone

Objective C
Objective C tutorials. We will be explaining the programming language with easy to learn examples. You will find these Objective C tutorials very useful... numbers as output.    Constructors Objective-C enables user 

Java Beginners

calculation after if. user input
user input????   My apologies good evening peoples Once again I am...calculation after if. user input  System.out.print ("please select... addition 5 errors found: File: C:\Users\ Error: variable appleCost might not have 

AOP Questions

c++ - AOP
c++  hi friends,i got this question and i need u help. "Two subjects namely computer aided design(subject1)and computer programming(subject2... student should also be output.end of output is to be signaled by input of a negative 

SQL Question

File structures and indexes
File structures and indexes  for the following BCNF relations... the names and ids of managers for each department in a user-specified location... who manage departments in a user specified location. no one manages more than 

Tutorials

NSString in objective c
NSString in objective c In this series of Iphone application development tutorials, we going to introduce you with some of the iphone basic classes and objects...that are used in objective C. NSString is one of them. Brief Introduction 

SQL Question

C program - SQL
C program  Write a C program for airport simulation using queue data structures. Please reply me 

Programming Tutorials

Linear and Non-Linear Data Structure in C
Linear Data Structure: Linear data structure is linear if element is adjacent... as its previous and next member. Example of Linear Data Structure Array Linked List Stack Queue Non- Linear Data Structure Non-Linear data 

Development process Questions

C,C++
C,C++  Sir, 100&30 gives output 4 in C++ and 100|30 gives output 116 How & and | gives output 4 and 116 

JSP Tutorials

JSP Tutorials Resource - Useful Jsp Tutorials Links and Resources
JSP Tutorials         ... to easily create Web content that has both static and dynamic components. JSP... XQuery scripts and output HTML directly to the user's browser. But there may 

Development process Questions

C,C++
C,C++  int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r);   #include<stdio.h> #include<conio.h> void main(){ int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r 

Swing AWT

how to move pointer in Textfield to newline
how to move pointer in Textfield to newline  consider my case... a2=Integer.parseInt(s2); int c[]=new int[10]; for(int i=1;i<=a2;i++) c[i...;i<=a2;i++) { int a3=0; s4=String.valueOf(i); a3=c[i]; s5=s5+String.valueOf 

Free Programming books

C# Programming Books
; C# Components and Database Handling... user input and depending upon the table name that the user typed in, the program... at the console for the user input followed by the 'Enter' key.    

Free C books

C and C++ books-page8
C and C++ books-page8       The ODBC from C Tutorial  In this section for example-based C tutorials that introduce you to ODBC API programming in C. Each tutorial contains 

Advertisements Advertisements
 

 

 

DMCA.com