olli
Hi In C, If we declare a floating-point variable, accordingly its pointer should be a pointer to float. My question is, is it because, for example, the address of a float object is a floating-point number, so it must necessarily be stored in a float object?
For any object type T, the pointer to the object is of type pointer to T. And this is what you want in most of the cases, since dereferencing is of type T again. Converting the pointer to a char - or void - pointer is fine
🐰🐾 سمیه
Ok thanx
Rajul
#include<stdio.h> int newYearParty(int n){ int i,arr[1000],sum=0,temp=0,first=0,last=0; for(i=0;i<n;i++) scanf("%d",&arr[i]); for(i=0;i<n-2;i++){ sum = arr[i]+arr[i+2]; if(sum>temp){ temp=sum; first=arr[i]; last=arr[i+2]; } } if(last<=0){ printf("%d\n",first); } else if(first<=0){ printf("%d\n",last); } else{ printf("%d%d\n",last,first); } } int main(int argc, char *a[]) { int i,testcase,element,answer; scanf("%d\n",&testcase); for(i=0;i<testcase;i++){ scanf("%d\n",&element); newYearParty(element); } }
Rajul
hey guys please i help me
Rajul
Rajul
5 5 -1 7 8 -5 4 4 3 2 1 -1 4 11 12 -2 -1 4 4 5 4 3 4 5 10 4 -1
Rajul
this is the input but i am getting wrong answer
olli
address are usually int_32 or int_64
This does not apply to all architectures and platforms, hence the existence of inptr_t is not mandatory. A pointer on an IBM System I is 128 bit
Ariana
oh rite
klimi
@Ariana1729 give me task
Ariana
wut
極白熊☠️Left hand dacing
Hi, there. I am a rookie.
بوصَعبْ
Hi, there. I am a rookie.
With time you will be veteran
極白熊☠️Left hand dacing
With time you will be veteran
Trying to, I'm working on it.
بوصَعبْ
🐰🐾 سمیه
https://codepen.io/ebrahimi36655/pen/LvabrG
🐰🐾 سمیه
https://codepen.io/ebrahimi36655/pen/LvabrG
This program gets some lines and prints the longest. Could you please modify function getline1( ) in a way that it uses pointers like shown below as its actual arguments: getline1 ( int *s, int *lim)
Ariana
Hi, there. I am a rookie.
你好,我是一个主教
Anonymous
*it's an address to other region of memory
Ariana
.-.
Ariana
what
Ariana
uh
極白熊☠️Left hand dacing
你好,我是一个主教
Greeting , good to meet you.
極白熊☠️Left hand dacing
hi
Hi, there
klimi
klimi
極白熊☠️Left hand dacing
hello
嗨你好,這裡必須用英文嗎?Just start a project that I have to get involved
klimi
You again?!!
S.
Or join the Chinese C++ group instead
Dima
Chinese++ lol
S.
😂
S.
Actually I see much fewer homework questions there … good place indeed
極白熊☠️Left hand dacing
i know only 你好 :D sorry :D
Oh, just wanna figure out. Never mind 😄
klimi
:D
極白熊☠️Left hand dacing
yeah shoyld use english
Yeah, will use it for sure
Ariana
Actually I see much fewer homework questions there … good place indeed
i think a possible reason is cuz those kids learning turbo c can’t understand chinese
Ariana
from that
Ariana
We should all start talking via diffie hellman
Ariana
p=2**64-95 g=2
Ariana
p=2**64-95 g=2
oh wait prime seems a bit small
Ariana
p=2**173-511 g=2
Ariana
a= 5969851087915183999204950096963333197764939033835991
Ariana
anyone?
klimi
anyone?
Hello
Ritik
Ariana
hi
Ariana
wanna dh?
klimi
Thats dh
Ritik
Where r u from tho
Ariana
143343663499379469475676305956380433799785311823006172298014112413298639549515870079822995197161615093831 65537 135151988888961438845198231319715116187706412304003464558840177887090348049071432334131031441961898635845
Ariana
only non turbo c kids can find out
Anonymous
I did, thank you 😁
klimi
Anonymous
Hi
Anonymous
Hi
Clrscr()
Anonymous
Clrscr()
Wtz dis
Anonymous
Guyz
Anonymous
Im exam tomorrow
Anonymous
Weapon - Wikipedia https://en.wikipedia.org/wiki/Weapon
Lucky
Wtz dis
method
Anonymous
Need code c++
Anonymous
Send me all the code of c/c++
Anonymous
In my c++
Elnee
Send me all the code of c/c++
Use GitHub and stop spamming
Anonymous
Hi