Programology – Telegram
Programology
7.27K subscribers
1.94K photos
771 videos
6 files
2.08K links
Pro·​gram | \ ˈPrō-ˌgram , -grəm \
:A Sequence Of Coded Instructions That Can Be Inserted Into A Mechanism (Such As A Computer)

Who We Are : https://msha.ke/programmerjokesofficial
Download Telegram
Comment Output
👍1
Options
Anonymous Quiz
44%
A
10%
B
14%
C
33%
D
👍1
Answer: d
Explanation: Operator | returns true if any one operand is true, thus ‘c = true | false’ is true. Operator & returns a true if both of the operand is true thus d is false. Ternary operator ?: assigns left of ‘:’ if condition is true and right hand of ‘:’ if condition is false. d is false thus e = d ? b : c , assigns c to e , e contains true.
output:
$ javac bool_operator.java
$ java bool_operator
false true
Comment your favorite shortcut down below, let's see which one takes the crown
https://instagram.openinapp.co/p-cc7oqpfjwgl
Comment Output
Options
Anonymous Quiz
38%
A
8%
B
7%
C
47%
D
🤮3👍1
chroma.js is a small-ish zero-dependency JavaScript library (13.5kB) for all kinds of color conversions and color scales.

https://vis4.net/chromajs/
Output: Hello All Jokes 11
The printf() function returns the number of characters it has successfully printed. The comma operator evaluates it operands from left to right and returns the value returned by the rightmost expression. First printf(“Hello”) executes and prints “Hello”, the printf(” All Jokes “) executes and prints ” All Jokes “. This printf statement returns 11 which is assigned to i.
👍1
Best GitHub Repository Every Developer should know..
https://instagram.openinapp.co/p-cc-m4snj0bg
1
Comment Output
Options
Anonymous Quiz
53%
A
6%
B
5%
C
36%
D
Output:

error: uninitialized const 'size'
Explanation: At first glance its obvious to think that output will be some garbage value, but it is not the case. Unlike C in C++ any variable declared as constant needs to be initialized at the time of declaration. Hence the given code will not compile and throw the error. It should be noted that the same code will get compiled in ANSI C and will produce output as 0.
2👍2
👍4