• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&A Discussions

#include <stdio.h> #define prod(i,j) i*j int main() { int x=3,y=4; printf(" %d \n",prod(x+1,y)); } output :7
cdefinepreprocessor
0 Votes
2 Answers
21st Nov 2019, 6:03 PM
mohamed Issati
mohamed  Issati - avatar
Which error occurs when I use #define a=6; and the assign it some other value say a=9;
c++defineerror
1 Vote
1 Answer
18th Jun 2019, 2:22 AM
Akash Raj
Akash Raj - avatar
Can you use the #define preprocessor to convert any value stored in a variable to string?
cdefinepreprocessortype-conversion
0 Votes
1 Answer
11th Apr 2020, 2:45 PM
Atiksh Mittal
Atiksh Mittal - avatar
#include<stdio.h> #define MAN(x, y) ((x)>(y)) ? (x):(y); int main() { int i=10, j=5, k=0; k = MAN(++i, j++); printf("%d, %d,
cprogram
1 Vote
2 Answers
21st Oct 2018, 6:20 PM
LYDIA JENNIFER P
LYDIA JENNIFER P - avatar
Does preprocessing makes our code faster?
#definec++definefunctionpreprocessor
2 Votes
2 Answers
27th Jun 2020, 3:52 PM
Abhishek Dimri
Abhishek Dimri - avatar
C++ preprocessor and user input on SoloLearn
#define#else#endif#ifndefcpppreprocessoruser_input
1 Vote
2 Answers
13th Feb 2019, 7:50 PM
DLZaan
< Previous12Next >
Hot today
Is this realistic enough?
2 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Web Development
0 Votes
Cybersecurity techies
3 Votes
Please complete this code.
0 Votes
Can someone please explain python for me
0 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
What's wrong with code?
0 Votes