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 

Design concepts & design patterns Questions

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

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 

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 

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 

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 

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

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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

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

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

Development process Questions

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

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 

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 

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 

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 

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 

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    

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 

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 

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 

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 

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.    

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 

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 

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 

Java Interview Questions

about c and java
://www.roseindia.net/c-tutorials/ http://www.roseindia.net/interviewquestions...about c and java   i need java and c language interview and objective questions with answers for the fresher.please provide to me   Please 

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 

Hibernate Questions

C++ question 3
.   C sum of two matrices The given code allow the user to enter...C++ question - add the two matrices and display the elements of resultant matrix.   Write a program to accept from user elements of two 2x3 matrices 

Java Beginners

C program to print the following
C program to print the following  Hello, Some one help me with a "C Program" to print the following as output: 4444444 4333334 4322234 4321234 4322234 4333334 4444444 // for input 4. And also 

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 

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 

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 

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

Advertisements Advertisements
 

 

 

DMCA.com