Вы находитесь на странице: 1из 5

TECHNICAL UNIVERSITY OF MANAB FACULTY OF INFORMATICS SCIENCE ENGINEERING DEGREE IN COMPUTER SYSTEMS DATA STRUCTURE TASK # 6.

SPECIAL TYPES OF SIMPLE LISTS (BATTERIES AND QUEUES)

AUTHOR:
PAREDES BRAVO JONATHAN ANDRES

PROFESSOR:
MR. CHRISTIAN TORRES.

LEVEL:
SECOND "C"

PERIOD:
SEPTEMBER 2012 - FEBRUARY 2013

FACULTAD DE CIENCIAS INFORMTICAS

Mission:
Be a unit with high academic prestige, efficiency, transparency and quality in education, organized in their activities, protagonists of regional and national progress.

Vision:
Form efficient professionals and innovators in the field of computer science, giving answers to the needs of society with honesty, fairness and solidarity, raising their standard of living.

TECHNICAL UNIVERSITY OF MANAB

Mission:
Train academics, scientists and responsible professionals, humanist, ethical and supportive, committed to the objectives of national development, which will contribute to the solution of the problems of the country as university teaching with research, able to generate and apply new knowledge, fostering the promotion and dissemination of knowledge and cultures, provided for in the Constitution of the Republic of Ecuador.

Vision:
Be referent, leader and university institution of higher education in Ecuador, by promoting the creation, development, transmission and dissemination of science, technique and culture, social recognition and projection, regionally and globally.

CODE OF DUTY
#include<conio.h> #include<stdio.h> void main () { clrscr(); int a,b; char c[50]="ANA CEDENO"; int d[10]={10,20,30,40,50,60,70,80,90,100}; b=7; a=10; printf("\n la informacion de las variables es:"); printf("a=%d ,b=%d ,c=%s",a,b,c); for(int f=0;f<10;f++) printf("\nd[%d]=%d",f+1,d[f]); printf("\n\n la dereccion de las variables es:"); printf("a=%p ,b=%p ,c=%p",&a,&b,&c); for(int i=0;i<10;i++) printf("\nd[%d]=%p",i+1,&d[i]); int *p; //puntero a enteros p=&a; //enlazamiento al puntero a la la direccion de la variable"a" *p=800; // modificando el contenido existente en la direccion enlazada printf("\n\n variable 'a' modificada con un puntero \n\n"); printf("a=%d ,b=%d ,c=%s",a,b,c); printf("\n la direccion de puntero es:%p", p); p=&b; printf("\n\n el contenido de la direccion del puntero es:%d",*p);

printf("\n\n contenido del array 'd'leido desde el puntero\n"); p=d; // el puntero toma la direccion del indice '0' del array for(int j=0;j<10;j++) { printf("\nd[%d]=%d",j+1,*p); p++; //ingrementa 2byte, debido a q el puntero es un entero } getch(); }

Вам также может понравиться