LikeC Programmer
"LikeC Programmer" is an initiative of a group of professional coders to give free advise and help t
"LikeC Programmer" is an initiative of professional programmers who wish to support the students to develop coding skills. The aim of the initiative is to induce professionalism in the younger generation which the University system cannot impart. Coding is a skill and not remembering few lines to pass a theory or practical examination. The registration for the above training program is open for al
20/06/2020
How cool is it to have favorite social media and shopping sites in your finger tip! This is built only for *DESKTOP* browsers. Use Chrome for best experience!! Happy browsing..!!!
One Link For Top Websites One Point Solution To Link All Sites
What is the output of the following assuming that the size of int is 4 bytes???!!!! Comment your answer.
using namespace std;
class abc {
void f();
void g();
int x;
};
main()
{
cout
Print all natural numbers upto N without using semi-colon in the logic!!
using namespace std;
int N = 10;
int main()
{
static int x = 1;
if (cout
Can you guess the output of below snippet.
void main(){
int i=10;
static int x=i;
if(x==i)
printf("Equal");
else if(x>i)
printf("Greater than");
else
printf("Less than");
}
Answer : Compilation Error
Static variables are load time entity while Auto variables are run time entity. We can not initialize any load time variable by the run time variable.
In this example i is run time variable while x is load time variable.
Tricky way to calculate the sum of all digits of the given number.
Ex : 153 ( 1 + 5 + 2 ) = 8
include
using namespace std;
int main()
{
int number = 152; //Any number.
int res;
if(number)
res = number % 9 == 0 ? 9 : number % 9 ;
else
res = 0;
//print the result
cout
Check 2 numbers are equal without using arithmetic operator.
int main()
{
int x = 10;
int y = 10;
if ( !(x ^ y) ) /* XOR operation */
printf(" x is equal to y ");
else
printf(" x is not equal to y ");
return 0;
}
14/07/2018
True story!!
20/05/2018
😂😂
22/11/2017
21/11/2017
So true!! :D
19/02/2017
Click here to claim your Sponsored Listing.
Category
Contact the business
Telephone
Address
10 BLOCK 5 BEML LAYOUT SRIRAMPURA 2ND STAGE
Mysore
570023