View all courses
This Course is designed for the aspiring Web Designers and Developers with a need to understand the HTML in enough detail along with its simple overview, and practical examples.
Read more
CSS is used to control the style of a web document in a simple and easy way.This tutorial will help both students as well as professionals who want to make their websites.
JavaScript is a lightweight, interpreted programming language. It is designed for creating network-centric applications. It is complimentary to and integrated with Java.
This tutorial is designed for software programmers who wants to learn the basics of jQuery and its programming concepts in simple and easy ways. This tutorial will give you enough understanding on components of jQuery with suitable examples.
AJAX, is a web development technique for creating interactive web applications. If you know JavaScript, HTML, CSS, and XML, then you need to spend just one hour to start with AJAX.
HTML5 is the latest and most enhanced version of HTML.Technically, HTML is not a programming language, but rather a mark up language.This tutorial has been designed for beginners in HTML5 providing the basic to advanced concepts of the subject.
PHP (Hypertext Preprocessor), it is extensively used by developers for programming and development. PHP has lots of benefits and easy to learn so it is the first choice of developers and programmer.
Many PHP programming courses cover the basics or a specific concept. Our Advanced PHP Development course gives you the concepts, features, tools, and practical advice to use them together to build performant, secure, scalable, and reliable web applications.
In this tutorial we will provide you with detailed instructions on how to use WordPress to create and manage your site. WordPress can be used for both simple and complex websites. In our WordPress tutorial we have tried to cover all the basics and few advanced topics.
This tutorial has been prepared for developers who would like to learn the art of developing websites using CodeIgniter. It provides a complete understanding of this framework.
Zend Framework 1 is an open source framework for developing web applications and services using PHP 5.3+. Zend Framework 1 uses 100% object-oriented code and utilises most of the new features of PHP 5.3.
Zend Framework 2 is an open source Module based framework for developing web applications and services using PHP 5.5+. Zend Framework 1 uses 100% object-oriented code and utilises most of the new features of PHP 5.5
The Language Which does not need any prior knowledge of Programming and Easy to learn .Python is Object-oriented ,interpreted and Server side Scripting language .
In Advance concept After learning Core Python We will use Python to create Desktop Application, Web Application, Sockets Programming , Multithread Programming. Since its An Open source Language its free of Cost
Ruby is server side, dynamic, reflective, object-oriented, general-purpose programming language. Ruby is "an interpreted scripting language for quick and easy object-oriented programming"
Ruby on Rails, or simply Rails, is a web application frameworkwritten in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web pages.
If you have any confusion then you can ask our experts.Our experts will guide you properly.
We are looking you if you are looking guidance for web design and development. Apply online.
Contact us
< Input output with different data types Scope Rules in C >
Variables in C A variable in C is a named piece of memory which is used to store data and access it whenever required. It allows us to use the memory without having to memorize the exact memory address. To create a variable in C, we have to specify a name and the type of data it is going to store. C provides different data types that can store almost all kinds of data. For example, int, char, float, double, etc. Every variable must be declared before it is used. We can also declare multiple variables of same data type in a single statement by separating them using comma . #include <stdio.h> int main(){ int age = 20; float height = 5.7; char grade = 'A'; printf("Age: %d\n", age); printf("Height: %.1f\n", height); printf("Grade: %c\n", grade); return 0; } Output Age: 20 Height: 5.7 Grade: A Rules for Naming Variables in C We can assign any name to a C variable as long as it follows the following rules: A variable name must only contain letters, digits, and underscores. It must start with an alphabet or an underscore only. It cannot start with a digit. No white space is allowed within the variable name. A variable name must not be any reserved word or keyword. The name must be unique in the program. C Variable Initialization Once the variable is declared, we can store useful values in it. The first value we store is called initial value and the process is called Initialization. It is done using assignment operator (=). It is important to initialize a variable because a C variable only contains garbage value when it is declared. We can also initialize a variable along with declaration. #include <stdio.h> int main(){ int age = 20; float height = 5.7; char grade; grade = 'A'; printf("Age: %d\n", age); printf("Height: %.1f\n", height); printf("Grade: %c\n", grade); return 0; } Output Age: 20 Height: 5.7 Grade: A Note: Values should be type-compatible, otherwise C performs implicit or explicit type conversion. Accessing Variables The data stored inside a C variable can be easily accessed by using the variable's name. #include <stdio.h> int main() { int num = 3; printf("%d", num); return 0; } Output 3 Changing Stored Values We can also update the value of a variable with a new value whenever needed by using the assignment operator =. #include <stdio.h> int main(){ int number = 10; printf("Initial value: %d\n", number); number = 25; printf("Updated value: %d\n", number); number = number + 5; printf("After adding 5: %d\n", number); return 0; } Output Initial value: 10 Updated value: 25 After adding 5: 30 How to use variables in C? Variables act as name for memory locations that stores some value. It is valid to use the variable wherever it is valid to use its value. It means that a variable name can be used anywhere as a substitute in place of the value it stores. #include <stdio.h> int main(){ int sum1 = 20 + 40; int a = 20, b = 40; int sum2 = a + b + 10; printf("%d\n%d", sum1, sum2); return 0; } Output 60 70 Memory Allocation of C Variables When a variable is declared, the compiler is told that the variable with the given name and type exists in the program. But no memory is allocated to it yet. Memory is allocated when the variable is defined. Most programming languages like C generally declare and define a variable in the single step. For example, in the above part where we create a variable, variable is declared and defined in a single statement. The size of memory assigned for variables depends on the type of variable. We can check the size of the variables using sizeof operator. #include <stdio.h>? int main() { int num = 22; printf("%d bytes", sizeof(num)); return 0; } Output 4 bytes
{{questionlistdata.blog_question_description}}
{{answer.blog_answer_description }}