Skip to main content

Posts

Showing posts from August, 2014

Declare an array of variable length

Declare an array of variable length in C language A lot of people keep asking about an array of variable length.Then they find a more often answer in the books, on the net i.e. use dynamic memory allocation.Though it is very important concept because it uses the memory in run time which reduces the execution time of your program but so many people are not used to this method which makes them fuzzy.I know another method to declare an array of variable length which is very comfortable to use. There you go.... Firstly create a function which will recieve the input from the user which is the length of your array.In most cases it is done in the main function.So how it looks... main() { int n ; scanf("%d", &n) ; func(n) ; } Then create a function to which you'll send the length variable as an arguement.In our case it in func() Now the final step, declare the array with the previous variable as its length. func(int k) { int arr[k] ; .....your code..... } I ...

8 Things you'll understand only if you have a girlfriend

8 Things you'll understand only if you have a girlfriend Girlfriend-Boyfriend Boyfriend-Girlfriend--These words are common nowadays and points to a relationship between a boy and a girl.Sometimes it is love and sometimes it is infatuation.But whatever it is, there are some points which will be understood only by those who have a girlfriend.Lets check the list and see if happens to everyone or not... Get used to Arguments The most often thing in a relationship is an unsignificant argument.Sometimes we even forget what we were quarreling over.And mostly times the reason behind the arguement is the XY partner.And when boys get the position in their hand then suddenly argument topic gets changed without any signal.So the outcome of this point is get used to these arguments. Learn to say SORRY So if you can't do anything regarding the arguements then just learn to say sorry otherwise there will be a situation when you can neither swallow the piece nor spit it out.Your XX p...

Symbols for characters used in HTML and JAVASCRIPT

Symbols used in javascript and HTML entities There have been a number of times when you want to add a url in javascript but the format is wrong.In such cases the format error occurs because of the symbols/numeric characters used in javascript instead of normal characters.In this article here is a complete list of such characters and their symbols used in html and javascript.I hope it will help you a lot...

Types of HTML Forms

Types of html forms In the last two posts we discussed about html text field forms and form attributes.Although all normal forms offer text fields to be filled but sometimes you need to create other types of forms also or you need to add other types of forms also which provide specific option to be chosen such as checkboxes, radio buttons and drop down lists.And there is another type of form also which lets you send an e-mail to a specific mail address.In this post, we'll discuss only check-boxes , radio buttons and drop down lists.For a mail-to form you can go to our mail-to form post.

HTML Form attributes

HTML Form Attributes In the last post we discussed about the html forms, types of forms and show you how to create a simple form.Though form creation is an important step but forms are useless until they send the entered information to a specific location.In this post, we'll discuss the form attributes which determine the action performed by the form. The two main and most important attributes of a <form> tag are "action=" and "method=".Lets discuss each of these two. Action :When the user clicks the submit button, the content is sent to the server.The action attribute determines the location to which the content is sent.The file defined in the action attribute usually does something to the information which is done using the scripting languages.We'll not discuss that here. so, what does it look like.... <form action="example.asp"> Username:<input type="text" name="user"/> <input type="submit...

HTML forms

HTML Forms HTML is a web page markup language which designs your static web pages.The most common thing we see in a web page is a form.We normally signup for various services, comments on articles, discussion forum, polls and many other services.These all are a type of form which one can easily create using the HTML "form" tag.HTML forms are used to collect different kinds of user input. A form is an area that can contain form elements. Form elements are elements that allow the user to enter information in a form (like text fields, text area fields, drop-down menus, radio buttons, check boxes, and so on). But HTML forms are only static.Means they can send the information but can't check whether the information is valid or not. To implement the form validation, you'll have to use a scripting language such as javascript, vbscript, php etc.Form validation is an important thing but form structure is another important thing which we can do using HTML only.

India's Ranking

INDIA:-A great power About India India is one of the most powerful countries in the world with a wide variety of resources and man power.It is the most popular democratic country in the world.The name India is derived from the word INDUS which originates from persian word HINDUS.Now in the 21st century when technology has conquer the world, India has a very significant position.There is lot to know about India but here in this article is only the mind-bogling facts which everyone should know before thinking about the charm of western countries.

How-to share files using Google Drive

Share files using Google Drive Google Drive is one of the best online storage service powered by google.It offers you 15GB of free storage which is associated with Google+ and Gmail also which can hardly occupy 2-3GB of this space.But hey...This much space is still sufficient to store your files for free.Google Drive is not only a good platform for file storage but you can also do a lot of stuff using it like sharing your files online, adding pictures to blogger, creating documents and much more.For a complete list of operations you can perform using drive, Go to

USB & Its Ports

A USB port is a standard cable connection interface on personal computers and consumer electronics. USB ports allow stand-alone electronic devices to be connected via cables to a computer (or to each other). USB stands for Universal Serial Bus, an industry standard for short-distance digital data communications. USB allows data to be transferred between devices. USB ports can also supply electric power across the cable to devices without their own power source. Both wired and wireless versions of the USB standard exist, although only the wired version involves USB ports and cables. What Can You Plug Into a USB Port?: Many types of consumer electronics support USB interfaces. These types of equipment are most commonly used for computer networking: USB network adapters USB broadband and cellular modems for Internet access USB printers to be shared on a home network For computer-to-computer file transfers without a network, USB keys are also sometimes used to copy files betwee...

Mario v/s Contra

Contra vs. Mario Mario v/s Contra Mario and Contra are those games which everychild must have played in his childhood.And those who haven't played it yet have absolutely missed something important.These games are the most popular games which are being still played even after 28 years of their making.Amazed.....!!!!!Both the games were made almost 28 years ago and there are a number of versions of Mario video games.Contra was actually created as a coin-operated game which was very popular arcade game.Almost 6000 machines of contra game were plotted so you can now its popularity.