Pseudorandom numbers are generated using a recurrence relation
$$R_i=(A×R_{i−1 }+B) mod C$$
Values of A=5,B=17,C=23,$ R_0$=3.
What will be the value of $R_{2018}$
or $R_n$ for that matter?
User Profile
Collapse
-
Writing a JSON file to server through Javascript
I wrote a chrome extension using javascript, which receives user inputs and using AJAX connect to PHP residing in the server to write them to specified folder in server.
I want to remove this PHP(server side) layer.
Is there any way I can directly write a JSON file to server, without the need of any server side language?
This will make my chrome extension portable across any web stack
Thanks in... -
Thanks Luuk!
What amount of data can I store in these databases.
What is the difference between these open source databases and the paid ones?
Thanks in advance!Leave a comment:
-
Open Source Database required for storing huge data from Web crawler
I have an idea to implement a web application.
I will be having a web crawler that will fetch pages and information from the sites and store it to database. The registered end user can access the information by querying from the database.
I will be using the Web-Crawler written in Python.
Initially, I can design my website using some free online tools like weebly.com and later on can publish by buying some domain.... -
bookset is the address of element 0,
*bookset = 1st book,
**bookset = 1st poem
***bookset = 1st line of the poem
Hence, **(*bookset+1) = 2nd line of the poem.
and so on....
Have I got right?Leave a comment:
-
Why do we require double and triple pointers?
Can anyone please help me with understanding double and triple pointers? -
Thanks for referring to such wonderful link. It helped a lot. Can you please help me further in understanding the double and triple pointers ? Any such link is welcomed!Leave a comment:
-
KushShukla started a topic How to allocate a 2D array of size M*N using single pointer and double pointer?in CHow to allocate a 2D array of size M*N using single pointer and double pointer?
Is this right?
int *p = NULL;
for(int i=0;i<M;i++)
p = new int[N];
Will this be going to allcate 2D array of M*N?
If yes how to check?
Using double pointer:-
int **p = new int;
for(int i=0;i<M;i++)
*p = new int[N] -
How many space is allocated by new int[z]?
I wrote following code.
int *p = new int[z];
cout<<sizeof(p)//comes out 4. OK
cout<<sizeof(*p )//comes out 4.Why?
In my opinion p is pointing to address storing an array of z int element. It should be 4*z.
Can anyone please help?
Also please let me know how can we know how much space is allocated by a poi...Leave a comment:
-
How many space is allocated by new int[z]?
I wrote following code.
int *p = new int[z];
cout<<sizeof(p)//comes out 4. OK
cout<<sizeof(*p )//comes out 4.Why?
In my opinion p is pointing to address storing an array of z int element. It should be 4*z.
Can anyone please help?
No activity results to display
Show More
Leave a comment: