Pavel
Built in the language itself
Pavel
Anonymous
How i can make like adobe programs
Anonymous
Anonymous
Why
Anonymous
Why
Because you can't 😂😂
Anonymous
I have a team
Anonymous
Why
If you could, you'd probably knew what to study
Hirrolot
Anonymous
Hello everyone
Elnee
Anonymous
Hello everyone! Have a look and see if you can help out with this project https://github.com/ethernity-cloud?tab=overview&from=2021-01-01&to=2021-01-31
Rajputana
We have taught that double data type only print value upto 15 decimal places but when I write it in the program and print upto 16 decimal places it works why please explain?
Pavel
Pavel
other digits contain garbage
Pavel
I'm not sure about the actual precise digit count, but 15 near zero looks close
Anonymous
Rajputana
Clear now thanks.
Bikash Kumar
Hello
Anonymous
Is there some way to generate pseudo random integer without using rand() function giving lesser number of collisions??
Epiginosko
Hello
Epiginosko
Anyone here know SQL SEVER🙏🙏🙏
Samu
Hello guys
Anonymous
Ludovic 'Archivist'
This solution will give you high quality random. You can lower the number of rounds to 8 instead of 20 to get a significant boost of performance at the cost of the cryptographic grade quality of the generator (it is still more than good enough)
labyrinth
why is it legal to read & write across the allocated memory border of heap?
labyrinth
example, malloc a char[100] and i can perform read and write on the index of 1005
Diego
Becauuuse
Diego
An array is not what you'd think of, it's not an "object"
Diego
It's simply a bunch of objects allocated next to each other
Diego
And the index operator [] is literally only doing the equivalent of
startingPointer + (sizeof(object) * index)
Diego
It doesn't do any bounds checking, you have to do them yourself
Anonymous
`#include<stdio.h>
int main()
{int n[5];
int a,b,c,i;
for (i=0;i<5;i++)
{
printf("enter no %d",i);
scanf("%d",&n[i]);
}
void maths(&a,&b,n[5],&c,int i);
printf("sum is %d,mean is &d,std is %d,a,b,c");
}
void maths(int *sum=0,int *mean,int n[i],int *y,int i)
{int x=0;
for (i=0;i<5;i++)
{*sum+=n[i];}
*mean=*sum/i;
for (i=0;i<5;i++)
{x+=pow((n[i]-*mean),2);}
*y=sqrt(x/i);
}`
Anonymous
can someone check this code and why is this giving error...its to find sum ,mean and std dev of five nos entered through array
Anonymous
ps ignore the backticks
Talula
`#include<stdio.h>
int main()
{int n[5];
int a,b,c,i;
for (i=0;i<5;i++)
{
printf("enter no %d",i);
scanf("%d",&n[i]);
}
void maths(&a,&b,n[5],&c,int i);
printf("sum is %d,mean is &d,std is %d,a,b,c");
}
void maths(int *sum=0,int *mean,int n[i],int *y,int i)
{int x=0;
for (i=0;i<5;i++)
{*sum+=n[i];}
*mean=*sum/i;
for (i=0;i<5;i++)
{x+=pow((n[i]-*mean),2);}
*y=sqrt(x/i);
}`
What is int n[i]???
Anonymous
ig the array of numbers
ninja
`#include<stdio.h>
int main()
{int n[5];
int a,b,c,i;
for (i=0;i<5;i++)
{
printf("enter no %d",i);
scanf("%d",&n[i]);
}
void maths(&a,&b,n[5],&c,int i);
printf("sum is %d,mean is &d,std is %d,a,b,c");
}
void maths(int *sum=0,int *mean,int n[i],int *y,int i)
{int x=0;
for (i=0;i<5;i++)
{*sum+=n[i];}
*mean=*sum/i;
for (i=0;i<5;i++)
{x+=pow((n[i]-*mean),2);}
*y=sqrt(x/i);
}`
your code is too much wrong
Anonymous
and i also included math.h
Talula
But you can’t write like that in arguments…
Anonymous
this
Talula
And why are you passing the variable by reference which is supposed to be mean? If you’re just going to get result back use it in return function.
Anonymous
ninja
Anonymous
Sarthak
#include <iostream>
using namespace std ;
int main ()
{
string password =" point break" ;
string guess ;
while(guess != password )
{
cout << " Voice activation required :";
getline (cin , guess) ;
if (guess != password)
{
cout << " ACCESS DENIED"<< endl;
}
}
cout << " access granted" << endl ;
}
Sarthak
Why my code always says access denied
Hanz
You might input "point break" instead of " point break"
Notice the space at char[0]
Sarthak
Hanz
Lemme try the code
Hanz
Hanz
Anonymous
Yodin
Er
Wow
Hlo
Anonymous
Wow
Hi
labyrinth
yeah it is not legal but can be done. i thought the kernel would have limit the access to the unallocated memory.
labyrinth
however, if I malloc a size of a memory page aka 4kb, and access half a page further (simply linearly increasing the pointer offset), it can be accessed. Does it mean there are multiple page registered at the page table?
Pavel
Pavel
If you want to shoot your leg, nobody can stop you
Pavel
And this can allow some very dirty performance haxxs
labyrinth
Prem
Cpp
Prem
/get cppbookguide