Skip to main content

Posts

C Programming #10 (Pointers)

Call by value To understand this you have to be familiar with functions. Whenever we call a function we passed something to it in general we pass values of the variable to call the function Eg:- sum=calsum(a,b,c); f=factor(a); Call by reference  To get this topic one concept you have to keep in mind that if we do anything in computer it get stored somewhere in the memory so instead of passing value of the variable if we are able to pass location of number ie:address of number then it is call by reference. If you are still not able to understand it then dont worry it's too tough for beginners but in time you will get the things Pointer Notation Consider:- i=3 Here i is the location name 3 is the value of the location 65524 is the location number To know the address ie location number you can use the program:- #include<stdio.h> int main() { int i=3; printf("Address of i=%u\n",&i); printf("Value of i=
Recent posts

Artificial Intelligence

Artificial Intelligence (AI) in Engineering Artificial Intelligence (AI) is the science of using a computer (program) to help think of solutions to solve a particular problem. This is especially very useful in the field of Engineering; due to the need of constantly trying to automate every process for improved efficiency. Every engineering field has benefitted from the use of AI, some more than others. Computer Engineering Computer Engineering is the primary field in which AI is used. Many companies are preferring AI programming over traditional programming as it allows their programs to be long lasting and avoids the constant need to update. Personal Assistant applications like Google Now, Siri and cortana heavily rely on the use of AI for predicting user behavior and voice recognition. Other application include video games, Purchase prediction, Smart cars, Fraud detection, Security services etc. Instrumentation Engineering Instrumentation Engineering primar

THE AADHAAR MAN (Nandan Nilekani)

An INDIAN entrepreneur, bureaucrat and politician, Nandan Nilekani was the chairman of the Unique Identification Authority of India (UIDAI). H had a fairly successful career at Infosys, as the company's topline grew six-fold under his stewardship when he was CEO between 2002 to 2007. After leaving Infosys, Nilekani accepted former Prime Minister Manmohan singh's invitation to steer the implementation of UID card project across the country. This was aimed at providing a unique identification number for every Indian, and will be used primarily for efficient delivery of welfare services. Nandan Nilekani is known as the brain behind aadhar more than his contribution to the Indian IT industry. The biggest misunderstanding of aadhar most Indian have had is the fact it is an ID Proof (like PAN, License, etc.). Nilekani has been quite articulate and clear in busting that myth, clarifying that purpose for aadhar is just for authentication and that it will not serve for any purpos

C Programming #9 (Functions)

Function is a self contained block of statement that perform a coherent task of some kind. In simple word to write a C Program in a professional manner and in a clean way it is must to use  functions. Function is used in the C program where you want to do a specific kind of work always. Example: #include<stdio.h> void message(); int main() { message(); printf("This is 1\n"); return 0; } void message() { printf("This is 2\n"); } Output: This is 2 This is 1 Now you must be wondering that This is 1 Should come first but I have made use of function and designed how it should appear. In this program I have used Message() three times void message() This is for function prototype declaration It is necessary to mention prototype of every function that we intend to define in a program message() This is the function call means it call it's own function and main() is temporarily suspended till the control is in function message af

AC Electricity

AC Electricity AC stands for alternating current. Many of you may be having bit knowledge of this as this is current that you get from your socket at home In America it is around 120 Volts And in India it is 220-230 Volts and 60 Hertz. In DC the waveform is straight line but in AC you can see a wave in the above image As its name indicates that this is alternating in nature its polarity reverses according to time and we can study it if we know the frequency ie: Hertz In India it is 60 Hertz mean it changes its polarity in 1/60 sec.As the formula is Time=1/frequency The flow of electrons changes at every 1/60 sec and this concept of AC is very important to study the components like capacitors and to know that which component supports AC and which supports DC. As many of you must have question in your mind that why we use AC and not DC for daily use in our appliances. It is because AC is easier to transmit long distance and its voltage can be easily increased or decre

C Programming #8 (Case Control Instruction)

In Programming we come across some situations where we have to choose from number of alternatives and choice should be specific to condition so the control statement that allow us to make a decision from number of choice is called as switch or we can say switch-case as they are used together. The switch statement looks like : switch (integer expression) { case constant 1: do this; case constant 2: do this; case constant 3: do this; default: do this; } In these case do this is the command statement that is to be followed when case is satisfied Example: #include<stdio.h> int main() { int i=2; switch(i) { case 1: printf("I am in case 1\n"); case 2: printf("I am in case 2\n"); case 3: printf("I am in case 3\n"); default: printf("I am in default"); } return 0; } Output of the program will be : I am in case 2 I am in case 3 I am in default But this is not the output we needed this program should give us

DC ELECTRICITY

DC ELECTRICITY DC electricity is known as Direct Current. The reason behind DC is known as direct current are: To conduct electricity there should be a flow of electrons and it takes place when potential difference is applied across it. There are no material in world that do not conduct electricity some material requires less volts to conduct these are conductors and some material requires high (very high) volts to conduct these are insulators.Even air can conduct electricity at high voltage and water is an insulator but it should be pure since water from tap contains chlorine it act as a conductor but distilled water is an good insulator. There are different kind of batteries available in market 1.5 volts 6 volts 9 volts Car batteries have 12 volts The difference in these batteries are related to current the battery of 9 volt have very less amount of power compared to 12 volt battery that we use in car but here the difference is not in the volts here t