Showing posts with label Magic. Show all posts

How to Create Folder "CON" or "AUX" or "NULL"

Hey friends....today I am gonna show a little trick about your computer. 

Ever tried to create a folder "CON" or "AUX" or "NUL".
Tried now??? - not working 

here you go with a simple method to stop this anxiety..

Rename folder from the right click option........
Now press ALT and press 255...
Press 255 from the right side of the keyboard i.e, Num pad where only numbers are given.....now write con and then press enter.....yayyy!! you'll see a con folder in your pc and also you can delete it easily.


How this works -:

The matter why we cannot create files or folders by using some names because there are some system based files which are already present there and so we cannot use these keywords.

Now here the problem was solved by using ALT button. ALT + any number is called an ALT tag and here ALT + 255 creates a blank space and due to this the name of the file or folder will now no more contradict to the one present in the system.








Example of C progamming language

Try this in turbo C:-

#include<stdio.h>
#include<conio.h>
void main()
{
    float a=0.7;
    if(0.7>a)
      printf("aa");
    else
      printf("bb");
   getch();
}

Output : aa

The if statement goes for true part but why...??
Answer for this that 0.7 is stored in the memory as 0.699999988079071.
Therefore if statement goes for true part.

Check another example by typing this small code :


#include<stdio.h>
#include<conio.h>
void main()
{
    float a=0.3;
    printf("%.20f",a);
    getch();
}

You will get output as :  0.29999999999999998890
Here 0.3 is stored as 0.29999999999999998890 in the memory

Functions with return type returning no values

An interesting thing about a functions in C++ with a non-void return type is that if you forget to place a return statement at the end of your function the it automatically return the ""result of last arithmetic operation"" done in that function code or else a 0 in normal functions and a garbage value if the function is inside a class
For eg-:

#include <iostream>

#include<conio.h>
using namespace std;

int fun()
{
    int i = 34 ;
    int j = i + 1 ;     //no return type mentioned here still output is 35
}

int main()
{
    cout << fun();  //output is 35
    getch();
    return 0;
}

another example where the line j = i + 1 is missing


#include <iostream>

#include<conio.h>
using namespace std;

int fun()
{
    int i = 34 ;
  //  int j = i + 1 ;  
}

int main()
{
    cout << fun();   // output is 0
    getch();
    return 0;
}






Template by Clairvo Yance
Copyright © 2012 Enigma of IT and Blogger Themes.