473,503 Members | 5,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

i need some explanation, pls help

15 New Member
hi guys, good day to you all, can someone try to explain to me whats the meaning of this , ill try to interpret it by myself but i need others side of explanation so i can really prove it to myself,

example: i initialized

int n[100], j,i =0;

when i declare

printf("Enter the number:\n");
scanf("%d",&n[i]);
i++;

and in my statement i declare;

if (n[j] >=90)

my question is j and i related to n ,how they process flow on getting the value of n

thanks in advance,
Dec 15 '06 #1
5 1239
r035198x
13,262 MVP
hi guys, good day to you all, can someone try to explain to me whats the meaning of this , ill try to interpret it by myself but i need others side of explanation so i can really prove it to myself,

example: i initialized

int n[100], j,i =0;

when i declare

printf("Enter the number:\n");
scanf("%d",&n[i]);
i++;

and in my statement i declare;

if (n[j] >=90)

my question is j and i related to n ,how they process flow on getting the value of n

thanks in advance,
Not really clear to me here. Maybe if you could rephrase it or post the complete program then someone can explain it for you
Dec 15 '06 #2
optimisticharish
6 New Member
hi guys, good day to you all, can someone try to explain to me whats the meaning of this , ill try to interpret it by myself but i need others side of explanation so i can really prove it to myself,

example: i initialized

int n[100], j,i =0;

when i declare

printf("Enter the number:\n");
scanf("%d",&n[i]);
i++;

and in my statement i declare;

if (n[j] >=90)

my question is j and i related to n ,how they process flow on getting the value of n

thanks in advance,
hi friend,in this program u not defined j.this must be error.i can help u if u send me full program
Dec 15 '06 #3
thefarmer
55 New Member
hi friend,in this program u not defined j.this must be error.i can help u if u send me full program

hi i just want the meaning of n [ i ]and the relation of letter i to n on this

scanf("%d",&n[i]);

and the letter j to n on this,

if (n[j] >=90)

thanks,
Dec 15 '06 #4
angelcd
15 New Member
hi i just want the meaning of n [ i ]and the relation of letter i to n on this

scanf("%d",&n[i]);

and the letter j to n on this,

if (n[j] >=90)

thanks,
hi there,

yes that's all i want , i need to know the meaning and their relation that's all

thanks in advance
Dec 15 '06 #5
J7K
3 New Member
I'm not sure I fully understand your question. But I take the shot.

n is declared as an array of integer of 100 elements.
Expand|Select|Wrap|Line Numbers
  1. int n[100];
Expand|Select|Wrap|Line Numbers
  1. &n[i]
refers to the memory address of the i-th of the array n

Expand|Select|Wrap|Line Numbers
  1. n[j]
refers to the value of the j-th element of the array n
Dec 15 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1829
by: Carolyn Gill | last post by:
I have already created an asp login/database for a learning/quiz section on a small site. There will be multiple quizzes through the site and what I need now would be help: tutorials or advice that...
2
2116
by: Susan Bricker | last post by:
Greetings. Before I begin, I have been stuck on this problem for about a 5 days, now. I have tried and just seem to be not getting anywhere. I know that the explanation is lengthy, but I am a...
3
3802
by: ash | last post by:
Hey I am new, but I don't have time to intruduce myself yet. I am intro to C++ and this is a programme I have to write. all the direction are here, It will be very nice of someone to figure this...
17
2660
by: Hazz | last post by:
In this sample code of ownerdraw drawmode, why does the '(ComboBox) sender' line of code need to be there in this event handler? Isn't cboFont passed via the managed heap, not the stack, into this...
2
2413
by: Dave Taylor | last post by:
Is there a decent explanation of how menu merging with MDI forms work in VB.NET? I've read through the online help and it still seems that whenever I change menus around or whatever, it breaks...
4
1527
by: dismantle | last post by:
Hi all, this is my 3rd week in studying VB codes and i came across with this codes from a online tutorial about classes. Public Function MiddleInitial() As String MiddleInitial =...
4
1885
by: adam_kroger | last post by:
BRIEF EXPLANATION: I have 6 TextBoxes named LIS1, LIS2, LIS3, ... LIS6. I want to be able to reference them using a For/Next loop and either read ot write to them. In VBA I would use something...
1
2921
by: vikjohn | last post by:
I have a new perl script sent to me which is a revision of the one I am currently running. The permissions are the same on each, the paths are correct but I am getting the infamous : The specified...
1
2072
by: javabeginner123 | last post by:
i have a java prob, and i have to solve it fast, but i'm just getting to know it, so plz help me solve it with full code completed, thanks so much. the prob is to create a monter fight and there is...
24
1373
by: kevin | last post by:
write a program in c.
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
5598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.