Anonymous
you can make a webserver in prolog
Anonymous
so you should theoritically be able to make a torrent client
Anonymous
key word is theoritically
Vladimir
I had a prolog class in the university and what I learnt is that I totally don't like this language
Anonymous
i love prolog
Vladimir
Or may be just bad teaching
Anonymous
well logic programming
Anonymous
in some way
Vladimir
Prolog is the only lang with 'logic programming' paradigm?
Anonymous
nope
Vladimir
Is it worth researching?
Anonymous
there are a few
Anonymous
Vladimir
Now I'm good with imperative C style
Vladimir
What's pros of 'logic style'?
Ravi
What is #pragma pack for structure in c
Jussi
Jussi
Otherwise it will get aligned by cpu register width
Jussi
(Optimized)
Ravi
Means there no chances to weaste of bytes
Anonymous
Can anyone help me with an program
Question is suppose there is an array of a[5]
Anonymous
As {10,20,30,40,50}
Anonymous
Print a pattern which should have 30 as addition of two number from array
Anonymous
Including 30 too
Anonymous
what does it mean?
like
10 20
30
?
Rashi
Hey , can anyone tell me what does &arr+1 refer to where arr is an array name in C ... Like
I have something like this -
int arr[5]={1,2,3,4,5};
printf("%u %u",arr+1,&arr+1);
I know arr+1 will print base address of 2nd element (i.e. index 1 element) , but what about &arr+1?
detergentTikiya
detergentTikiya
arr is nothing but a pointer to an array of 5
detergentTikiya
so, &arr+1 will point to the next array of 5
Link
how to solve this question
kλletaa
ching chong
detergentTikiya
kr4T0X
Which modern IDE should I use for C programes instead of TURBO C++?
Zodiak
klimi
Anonymous
klimi
Personally I use emacs
Zodiak
klimi
Msvc :/
András
András
Qtcreator
Elnee
Vim 😀
András
Visual Studio
Nonono, i think it's the worst IDE for c++
klimi
Okay, I think its enough
András
klimi
Move to #ot for further discussion
kr4T0X
Not for C++ but for C.
András
András
Zodiak
Zodiak
For me its good
klimi
András
For me its good
When vs just stop response, or do not open the file just because file is already opened(when everything is closed), etc.
Spark | fosslife.com
Sirom HDEV identity theft is not a joke 😂
András
Spark | fosslife.com
no? why would I follow you I don't even know you
Spark | fosslife.com
are you a rust developer?
András
Spark | fosslife.com
awesome! nice to meet you
Zodiak
Anonymous
What is purpose of do while statement ?
I know what it does but have to write answer in my assignment and couldn't write well so if anyone can help......
Thanks in advance
Vladimir
When you need to do something at least once before loop
L
/get 'c++_isnt_c_with_classes'
L
/get c++_isnt_c_with_classes
L
/get cpp
L
L
/get reference-the-standard
Anonymous
What are types of error do function prototype help to prevent?
Obakeng
Hi guys, I have a project and I need to sort data, where do I start to tackle a project like this?
klimi
That hurts my eyes
klimi
I'm in good mood so i wont warn you. But for your own safety read the rules again
Ибраги́м
https://www.reddit.com/r/cpp/comments/cfk9de/201907_cologne_iso_c_committee_trip_report_the/
Vipul
Given an array of n positive integers, for all i except when i= t, A[i]=i, and A[t]=t+1;find the value of t. (Not using brute force approach i.e O(n) ).
Example
Let 8 be the number of integers in an array so and let t=6 so array will be
{0,1,2,3,4,5,7,7} . Now how to find t using binary search. I am confused plz help or tell me the approach
I_Interface
Given an array of n positive integers, for all i except when i= t, A[i]=i, and A[t]=t+1;find the value of t. (Not using brute force approach i.e O(n) ).
Example
Let 8 be the number of integers in an array so and let t=6 so array will be
{0,1,2,3,4,5,7,7} . Now how to find t using binary search. I am confused plz help or tell me the approach
Did u even try to write ur code ?