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 

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 

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 

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++  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 

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 

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 

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 

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 

Java Beginners

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

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 

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

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

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 

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 

Development process Questions

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

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 

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 

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 

Java Beginners

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

Development process Questions

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

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 

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 

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 

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 

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 

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 

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 

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++
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 

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 

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 

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    

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 

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 

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 

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 

SQL Question

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

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 

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 

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++  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 

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 

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.    

SQL Question

C program - SQL
C program  Thank You . Write some C programs using pointers . Write some C programs using files. Please reply me .   Hi Friend, Please visit the following link: http://www.roseindia.net/c 

Development process Questions

all c library functions
all c library functions  hi dear c coders, i need all c library functions with a detailed explanation. Who can give me usefull link? thanks beforehand!   Hi Friend, Please go through the following link: C Tutorials 

Hibernate Questions

wt are the components in the hibernet
wt are the components in the hibernet  plz give me the reply   Hi Friend, Components of Hibernate a) Hibernate Core b) Hibernate Annotations c) Hibernate Entity Manager d) Hibernate Shards e) Hibernate 

Development process Questions

c++ - Development process
c++  How to integrate two or more c++ programs. i have one more doubt in c++ language.how to create header file in c++(user defined).please reply immediately 

Framework Questions

c postfix - Framework
://www.roseindia.net/c-tutorials/index.shtml Thanks...c postfix  q: write a c program to read apostfix expression store it in array of character then evaluate this expression using eval and get_token 

Mobile Applications Questions

Objective C resize UIImage
Objective C resize UIImage  i just want to resize the image on the touch detection. That means if a user double clicks on the UIImage it must resize the image 

General

Java for C Developers
allows programmers to have their own data structure with less of codes. Unlike C... Java for C Developers          Some times ago, many people believed that Java was slower than C 

Java Beginners

help with substring in c programing
help with substring in c programing  Hi I could not found programming in C in the "select category" so I am posting my question in java section. Please help with substring function,prompt the user for two strings and display 

Java Beginners

null pointer error
null pointer error  Respected sir there is a problem in this code... pointer error sir please help me my code are given below compilatation class...=stmt.executeUpdate(); //cn.commit(); cn.close(); } catch(SQLException c) {} catch 

Java Beginners

null pointer error
null pointer error  Respected sir there is a problem in this code... pointer error sir please help me my code are given below compilatation class...=stmt.executeUpdate(); //cn.commit(); cn.close(); } catch(SQLException c) {} catch 

JSP-Tutorials

<c:If> with No Body
<c:If> with No Body      ... that the value entered by the user is fulfilling the condition or not, then in these condition the <c:if> tag is used. The problem with <c:if> is that, this tag 

Java Magazine Questions

C program - Java Magazine
C program  develop a simple program in C that allows a user to enter... by the 3 integers entered. For example, suppose the user enters 3, 4 and 5...: #include #include void main(){ int a,b,c,area,ar; clrscr(); printf 

Development process Questions

c programming - Development process
c programming  Hello Sir, can you plz post an answer to these quesions : Write a program in c that prompts the user the name of a file... in c to create a fle, open it, type in some characters and count the number 

SQL Question

C program - SQL
C program  Thanks!!!!!!!!!! Please reply me some programs for DATA STRUCTURES (LINKED LISTS,ETC)  Hi Friend, Try the following code: # include # include #include struct element *temp; struct 

Development process Questions

c/c++ - Development process
c/c++  Creating animation using c/c++. The code for moving an object using c/c 

Struts Questions

C:Redirect Tag - Struts
C:Redirect Tag  I am trying to use the jstl c:redirect tag... that when the user starts to enter data on the true start page, some appliaction information will have already been initialized. Is this possible with the c:redirect 

Java Beginners

sorting Line in c
sorting Line in c  Hi I need help with sorting line in programming c asking user to enter 1-10 characters and then sort them in lower case, alphabetical and ascending order. Any help will be appreciated! please help! void 

CVS Questions

C Programing - CVS
C Programing  Write a C Program to display the following menu: Menu 1. Display 2. Copy 3. Append 4. Exit Accept the choice (1-4) from the user, and perform the following tasks: Choice 1: Accept a file name from the user 

Development process Questions

c++ - Development process
c++  how the user create our own header file in c++ programs.i have coding but i can't create header file .please help me.code is shown below.reply immediately. //starting Arm.H #ifndef _ARM_ #define _ARM_ class Arm 

Development process Questions

c/c++ - Development process
c/c++  I need the code for developping two dice and roll them using c/c++. Thanks 

Java Beginners

variable declaration in c and c++
variable declaration in c and c++  Comparison and an example of variable declaration in C and C 

Java Beginners

C Language - Java Beginners
C Language  1. What are extension files? Give examples. 2. What is operating system? What are the different types available? 3. What... and difference between them ? 7. What do you mean by single user and multi user ? 8 

Java Beginners

c++ - Java Beginners
c++  1. Create the equivalent of a four-function calculator. The program should request the user to enter a number, an operator, and another number... it finishes the calculation, the program should ask if the user wants to do another 

Development process Questions

C/C++ - Development process
C/C++  I need the code for playing the backgammon game using C/C++.Im using turbo C. I`ve already design the board.I badly need the code for playing this game 

General

C Tutorials
 

Java Beginners

basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function 

Java Beginners

basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function 

Development process Questions

c/c++ - Development process
c/c++  Ive been asked to develop a backgammon game using C language. I don't know which code to use to move checkers and to roll die. I would appreciate to get some help. Thanks 

Development process Questions

c/c++ - Development process
c/c++  Ive been asked to develop a backgammon game using C language. I don't know which code to use to move checkers and to roll die. I would appreciate to get some help. Thanks 

Java Beginners

Managing Multiple User Input Data in an Array (or ArrayList)
Managing Multiple User Input Data in an Array (or ArrayList)  Hey...) choice 2 -> Delete employee record(s) c) Choice 3 -> Sort employee record alphabetically (2) If user chooses choice1, the input data is stored 

C Tutorials

C array of pointers
C array of pointers      .... A pointer is a variable that contains the memory location of another variable...; Syntax of declaring a pointer:   data_type_name * variable name First 

JSP Tutorials

JSP JSTL c:if tag
; <input type="submit" value="Guess!" /> <c:if test... JSP JSTL c:if tag   ... jstl if tag in jsp.  The c:if tag is used for a decision need, to be made 

C Tutorials

C Dynamic Array
of a dynamic array in C. The dynamic array is an array data structure which can... C Dynamic Array      ....  You can see in the given example that we prompt the user to enter 

Java Beginners

c c++ - Java Beginners
c c++  Write a small record management application for a school...]; String name = f[1]; String c = f[2]; String note = f[3...]; String name = st[1]; String c = st[2]; String note = st[3]; if (id.equals 

Swing AWT

c c++ - Swing AWT
c c++  Write Snake Game using Swings  Hi Friend, Try the following code: 1)SnakeGame.java: import javax.swing.JFrame; public class SnakeGame extends JFrame { public SnakeGame() { add(new Snake 

Eclipse Plugins

Cantata++ - for testing C and C++ software
Cantata++ - for testing C and C++ software  ... of the C/C++ languages to produce a tool which allows developers to efficiently... Full support for: ANSI C (89 and 99), ISO C++, EC++ and Java coverage 

C Tutorials

C Replace String
C Replace String       In this section, you will learn how to replace a string in C.  Here a function pointer replace is created in which variables st, orig, repl 

C# Tutorial

bsearch() function in C
bsearch() function in C Programming Language This section demonstrates the use bsearch() function in C. This searches function the given key in the array... by b is greater than the a, it will return -1. In the main function, user 

iPhone

Objective C Constructors
Objective C Constructors       Objective-C enables user to define constructor with the help of self and super keywords. Like java Objective-C has parent class and programmer 

HTML Questions

please help me to answers this question about C++.....huuhuhuhu
clock to measure the running time c) Use several input (eg: N = 100 , N = 1000...please help me to answers this question about C++.....huuhuhuhu  1) Write a full program for the bubble sort algorithm. User is required to enter 

Struts Questions

please help me to answers this question about C++.....huuhuhuhu
clock to measure the running time c) Use several input (eg: N = 100 , N = 1000...please help me to answers this question about C++.....huuhuhuhu  1) Write a full program for the bubble sort algorithm. User is required to enter 

Java Beginners

C# question
C# question  Explain enumeration base types in C 

Java Beginners

C# question
C# question  In C#, string is a class or primitive type. Explain 

XML Questions

Difference in XML, C, C++, Java
Difference in XML, C, C++, Java  hi... What is the difference between XML and C or C++ or Java ? please tell me about that Thanks 

Ajax Questions

how can I great two user and password in C++?
how can I great two user and password in C++?  how can I great two user and password in c 

Advertisements Advertisements
 

 

 

DMCA.com