Questions tagged [addressing]

153 questions
0
votes
1 answer

CUDA shared memory addressing

I understand that when I declare a shared memory array in a kernel, the same sized array is declared by all the threads. A code like __shared__ int s[5]; will create a 20 byte array in each thread. The way I understand addressing shared memory is…
gmemon
  • 2,573
  • 5
  • 32
  • 37
0
votes
1 answer

Addressing modes for static and local variables

Why are static variables addressed directly while locals are addressed indirectly? I cannot see where the indirection comes from for locals!
mrk
  • 3,061
  • 1
  • 29
  • 34
0
votes
3 answers

Memory addressing in assembly / multitasking

I understand how programs in machine code can load values from memory in to registers, perform jumps, or store values in registers to memory, but I don't understand how this works for multiple processes. A process is allocated memory on the fly, so…
-1
votes
2 answers

Address woes from Hacking: The Art of Exploitation

I bought this book recently titled: Hacking: The Art of Exploitation (2nd Edition) and it's been bugging me so much lately. Anyway, with one of the examples, firstprog.c : #include int main() { int i; for(i=0; i < 10; i++) { // Loop 10…
jaykru
  • 35
  • 2
-1
votes
1 answer

C addressing method

#include #include #define can 100 /* run this program using the console pauser or add your own getch, system("pause") or input loop */ void hesaplacumle(int *sayi,char dizi[can]) { *sayi=strlen(dizi); printf("Karakter…
-1
votes
1 answer

Assigning Network Addresses to Subnet

I'm currently looking over a textbook problem and I'm having trouble making sense of the answer. The question is: Consider the topology shown here: Denote the three subnets with hosts (starting clockwise at 12:00) as Networks A, B, and C. Denote…
john
  • 29
  • 7
-1
votes
1 answer

Is reference ID same as address of a memory location in java?

In Computer, variables are either accessed by name or the memory location. So is reference ID in java same as memory address?
-1
votes
1 answer

Classless addressing

Your router has the IP address of 216.83.11.65/27. You wish to connect a new system on the network. Which of the following addresses would you assign to the new system. A: 216.83.11.45 B: 216.83.11.87 C: 216.83.11.95 D: 216.83.11.96 The…
Xsdubb
  • 13
  • 1
-1
votes
1 answer

How to get text after an element in xpath?

I have the following code and I am trying to address or read "HERE", using xpath.I am programming java and using page.getFirstByXPath method: ...
pix
  • 58
  • 7
-1
votes
1 answer

Should be easy array situation

My question shouldn't be too difficult but I haven't solved it yet. Basically, what I'm trying to do is to take a message (like this one), preserve each letter in the message, but generate a random message using each letter. So, I can currently…
-1
votes
1 answer

Getting Column Address of Cell Representing the First Instance of a String (VBA)

I want to get the column address of the first cell in a particular worksheet that contains a certain string. Here is code I have written to do so: Dim StringInQuestion As String Dim ColumnRange1 As Range NamedSheet.Select Range("A1").Select On Error…
PBG
  • 9
  • 3
  • 8
-1
votes
3 answers

Python split string with a list of words

Trying to split my address string with apts = {'apt','apartment','unit','spc','space','trlr','lot','A','B','C','D'} could it be done any better way than fulladdress.split("apt") fulladdress.split("apartment") ... ... was trying to make def…
Minnu P
  • 63
  • 1
  • 9
-1
votes
2 answers

Computer Networks ip addressing

So I have this exercise in one of my classes on network ip addressing. The problem is that i cant figure out how to complete the subnet bits and hosts bits..can anyone help me? the number of hosts is 414, 189, 135 and 90...
noel293
  • 514
  • 5
  • 21
-2
votes
3 answers

Why does C++ always display a Hexadecimal memory address and not just an integer?

I wanted to know why printing the address of a variable in c gives the output as something like 823759733 while, doing the same in c++ shows 0x7ff6474009c?? Is this the work of 'cout', that formats the address as a hex? or is the variable memory…
-2
votes
3 answers

Difference between Linux and Windows in Python addressing CSV files

I'm trying to make the migration from Windows to Linux, some of my Python code has not survived the move. this is the Windows version: path = r'C:\\Users\\x\\PythonTestFiles\\TestFile.csv' file = open(path, newline='') TestFileRaw =…
Rice
  • 1
1 2 3
10
11