Answer: c
Explanation: Compilers implementing C90 do not allow this, but compilers implementing C99 allow it.
Output:
$ cc pgm4.c
pgm4.c: In function ‘main’:
pgm4.c:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
pgm4.c:4: note: use option -std=c99 or -std=gnu99 to compile your code
Explanation: Compilers implementing C90 do not allow this, but compilers implementing C99 allow it.
Output:
$ cc pgm4.c
pgm4.c: In function ‘main’:
pgm4.c:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
pgm4.c:4: note: use option -std=c99 or -std=gnu99 to compile your code
👍1😁1
I know people hate redux for adding too much boilerplate and generally being applicable to medium/large projects.
And of course mobx or even recoil are a bit nicer (my subjective opinion).
But what's the hype with zustand? Looks good, but any of you actually tried it on large projects?
https://github.com/pmndrs/zustand
And of course mobx or even recoil are a bit nicer (my subjective opinion).
But what's the hype with zustand? Looks good, but any of you actually tried it on large projects?
https://github.com/pmndrs/zustand
GitHub
GitHub - pmndrs/zustand: 🐻 Bear necessities for state management in React
🐻 Bear necessities for state management in React. Contribute to pmndrs/zustand development by creating an account on GitHub.
👍1
Output:
Compiler Error
The value of nontype parameters must be constant as they are used at compile time to create instance of classes/functions. In the above program, templated fun() receives a nontype parameter and tries to modify it which is not possible. Therefore, compiler error.
Compiler Error
The value of nontype parameters must be constant as they are used at compile time to create instance of classes/functions. In the above program, templated fun() receives a nontype parameter and tries to modify it which is not possible. Therefore, compiler error.
10 Useful CSS Tricks for Front-end Developers
These CSS tips and tricks showcase nifty CSS tricks that are useful for both developers as well as designers and highlight the potential of not needing JavaScript for certain design features. And, the nice thing is that you can implement these tricks in practically any design! - http://amp.gs/jBeLc
These CSS tips and tricks showcase nifty CSS tricks that are useful for both developers as well as designers and highlight the potential of not needing JavaScript for certain design features. And, the nice thing is that you can implement these tricks in practically any design! - http://amp.gs/jBeLc
👍3
#learn
The guy behind Tao of React released an article about going through React's source code.
An interesting read worth your 23 mins. Also as an extension to what you've seen in other articles shared here.
https://alexkondov.com/readint-source-code-react/
The guy behind Tao of React released an article about going through React's source code.
An interesting read worth your 23 mins. Also as an extension to what you've seen in other articles shared here.
https://alexkondov.com/readint-source-code-react/
Alexkondov
Reading Code - React
It’s daunting to even think about reading the code of a framework I’ve been using for years. I’ve always seen React as a black box that takes JSX and puts…
Output:
51
Explanation : In the above program we are creating a member variable having name ‘life’ by adding it directly to the dictionary of the object ‘manager’ of class ‘Geeks’. Total numbers of items in the dictionary is 2, the variables ‘life’ and ‘id’. Therefore the size or the length of the dictionary is 2 and the variable ‘life’ is assigned a value ’49’. So the sum of the variable ‘life’ and the size of the dictionary is 49 + 2 = 51.
51
Explanation : In the above program we are creating a member variable having name ‘life’ by adding it directly to the dictionary of the object ‘manager’ of class ‘Geeks’. Total numbers of items in the dictionary is 2, the variables ‘life’ and ‘id’. Therefore the size or the length of the dictionary is 2 and the variable ‘life’ is assigned a value ’49’. So the sum of the variable ‘life’ and the size of the dictionary is 49 + 2 = 51.