Enthusiastic tricks and Techniques of c/c++java
Hello Friends.....
Here you can post different tips , tricks and techniques of programming languages like c,c++,java etc.
In fact these languages will provide huge amount of magical things in the basic level also . So share your knowledge make thinks easier .
Here you can post different tips , tricks and techniques of programming languages like c,c++,java etc.
In fact these languages will provide huge amount of magical things in the basic level also . So share your knowledge make thinks easier .
Replies
-
deepu11111111In Array , if you declare an array as
int a[5]={1,2,3,4,5);
and then if you want to print the address of any element in the array , you have to declare the pointer .
But we can get the first elements address directly
printf("%u",a);
We know that the array is a continues memory allocation structure so that we can find all addresses of array elements without using pointers -
deepu11111111You have to feel free to express your words , if they are any mistakes or clarifications in any post in this thread in order to make this thread more useful
-
K!r@nS!nguHI #-Link-Snipped-# !
Nice thread !
The Closing Bracket you mentioned wrongly !deepu11111111int a[5]={1,2,3,4,5);
It should be :
int a[5]={1,2,3,4,5};
Am i correct ? -
deepu11111111You are right #-Link-Snipped-#
-
K!r@nS!nguIt is been one year i left my practice in programming, yet i will try to post tricks of Java here ๐ !
-
deepu11111111
You are most welcome #-Link-Snipped-#K!r@nS!nguIt is been one year i left my practice in programming, yet i will try to post tricks of Java here ๐ !
That's very useful -
deepu11111111Post more tricks and special things of java,c++,c for expending our knowledge guys ๐
-
nareshkumar6539Swap two variables without using third variable code will be like below
a=a+b;
b=a-b;
a=a-b;
the same thing we can do in a single like below.
a=(a+b)-(b=a); -
nareshkumar6539In c if you want to print something on console without using semicolon then write printf statement
inside if as condition like below.
if(printf(" Crazy Computer Science Engineers"))
You are reading an archived discussion.
Related Posts
Samsung's flexible, unbreakable AMOLED displays will be called 'Youm'. Those who know Korean may check out Samsung's new page dedicated to Youm: https://www.samsungsmd.com/kor/skill/KN-skill-1-5.jsp . Samsung's engineers have been focusing on...
When LinkedIn was new, I was an early adopter. I created profile, deleted it and then created again; then forgot about it. Then I wanted to contact a person for...
here it is my code i ran this code, i set a password to the program to allow user to write the image location in computer, but its not taking...
Good day all
This is the Schematic of Intercom circuit
P.S.
you will see "R" Symbol it's just Indicates to the "ohm" unit
2R2 = 2.2 ohm
22R = 22...
Today CEan Gaurav Bhorkar is celebrating his birthday.
Wish you many many Happy Returns Of The Day. ๐