Anonymous
And advance users group already exists But it's private for now
Sher
But this group name doesn't tell newbie users this is for advance users, that is why some ask very basic questions which can be found on Google. I am just suggesting.
Sher
Man, ppl should learn how to search information what they want to get.
Look guys recently this year 2018 and 2019 people in india got more access to internet (because of low pricing). So don't expect to be expert on using the internet.
Anonymous
why we use typename in template
Anonymous
Can anyone tell y dis question's ans is b=5 and c=1???
klimi
Um
klimi
C = if not not a
klimi
So c is true
klimi
So it is 1
klimi
The first one is just logical statement which result is not stored
klimi
You're welcome
Anonymous
How the ans of quest no. 6 is 6 instead of 5
I_Interface
klimi
X = 2 * (2+1)
bdam
How the ans of quest no. 6 is 6 instead of 5
Right hand side is evaluated first
Anonymous
unsigned int I=23; Signed char c=-23; If(I>c) Print("yes"); Else if(I<c) Printf ("no"); How d ans of dis quest. is no instead of yes???
数学の恋人
/notes
数学の恋人
/get india
数学の恋人
@Neko_cpp
MᏫᎻᎯᎷᎷᎬᎠ
Loooool
数学の恋人
Loooool
What?
MᏫᎻᎯᎷᎷᎬᎠ
What?
Excuse me?!
数学の恋人
I am asking you why Loooool?
MᏫᎻᎯᎷᎷᎬᎠ
Doesn't matter
RishiGss
can anyone suggest me some resources to start programming
RishiGss
can anyone suggest me some resources to start programming
I am completely new to programming... which one should I start with and where do I start?
Anonymous
#include<stdio.h> #define PRODUCT(x)(x*x) int main() { int i=3,j,k,l; j=PRODUCT(i+1); k=PRODUCT(i++); l=PRODUCT(++i); printf("%d %d %d %d\n",i,j,k,l); return 0; }
I_Interface
Tell the output
/warn No. Think it by yourself.
Anu
Anyone know communicating with modbus slave using c++
Anonymous
Bro i tried but i want to know the explanation of the output i am not understanding it🙏
Anonymous
7 7 12 49 how??
Anonymous
Anyone plz
I_Interface
Anyone plz
Use debugger and watch it step by step.
I_Interface
7 7 12 49 how??
j = PRODUCT(i + 1); - here expression is (i + 1 * i + 1) what is 3 + 1 * 3 + 1 = 7.
I_Interface
7 7 12 49 how??
The next think by yourself.
Anonymous
I want to know about i
I_Interface
I want to know about i
You rly don't see a logic of ur definition, do you ?
Mar!o
7 7 12 49 how??
Because * has a higher precendece than + like the math rule
I_Interface
j = PRODUCT(i + 1); - here expression is (i + 1 * i + 1) what is 3 + 1 * 3 + 1 = 7.
It's like here in k and l: i = 3 in k (i++ * i++) i here = 5. in l (++i * ++i) i here = 7.
I_Interface
Because * has a higher precendece than + like the math rule
I rly don't like the definition of product function.
Anonymous
Yess bro
Anonymous
Thanks
I_Interface
Yess bro
I'm not your "bro" and don't forget to use your head.
Anonymous
I am sorry
Mar!o
I rly don't like the definition of product function.
Me neither for things like that he should use constexpr functions.
I_Interface
Me neither for things like that he should use constexpr functions.
He even don't understand what he is doing and what he want to get. Idk why ppl learning programming in that way.
Mar!o
Akram use this instead of your macro: template<typename $num_t, typename = std::enable_if<std::is_integral<$num_t>::value || std::is_floating_point<$num_t>::value>> [[nodiscard]] constexpr auto __declspec(noalias) product ( const $num_t a, const $num_t b ) noexcept -> $num_t { return a * b; }
Mar!o
If ur not using MSVC remove declspec(noalias)
Anonymous
Akram have a look at this https://stackoverflow.com/questions/7562278/why-define-is-bad
Tokin
Lately there have been so many newbies interested in learning about C
Punish3r
Can someone suggest a good book for learning assembly x86 programming or point me towards a good source.
Manoj
🙏
klimi
Rasim
Hello
.
Hello
Hello
バレンタインがいない柴(食用不可)
.
Hi
Methodous
Hello guys how are you anyone can help me a code for birthday wish in c program
Anu
Yes
Anu
Explain
Anonymous
Thank you
YVEF
Hi guys. how I can control boundes of iteration of pointer on pointer if don't know real amount of elements?
I_Interface
/notes
I_Interface
#cbook
I_Interface
#cppbookguide
Anonymous
Please Solve This Given a matrix mxn matrix(m,n>3).You have to perform the following operations: i) Find the same consecutive numbers in the matrix either vertically, horizontally or diagonally such that atleast four consecutive nos. are there. ii) If there are more than one such set of numbers then print an integer outnum which is the minimum of such consecutive nos. iii) If no such no. exists print -1. Input Format Input: first line contains two space separated integer m and n. Second m lines have n space separated integers. Constraints 2<=m,n<=1000 Output Format Output: an integer outnum or -1 if no such nos. exists Sample Input 0 [29/12, 8:43 PM] FaizI New: output:_ [29/12, 8:44 PM] FaizI New: 5 6 7 8 9 5 4 2 5 7 9 4 5 2 6 8 7 9 2 2 1 4 2 7 6 2 1 1 1 1 1 4 Sample Output 0 1 Explanation 0 Here, There are two number such nos. which is consecutive for 4 times either in row ,column ,diagonals(i.e 1 and 2). Now print the min of( 1,2) ,which is 1.
apocalypse
apocalypse
Pls help i hv exams tommrow.