Popular Localities

Bangalore

Delhi

Noida

Gurgaon

Mumbai

Hyderabad

Kolkata

Chennai

Pune

Ahmedabad

Chandigarh

Online Services

Student Enquiries

Jobs

loading......

coming soon

Coming Soon

We are in process of building the inventory of good professionals in this category

Got it!
C Language

C Language

+ Follow 22,553 Followers

Share

Showing 26 to 50 of 175
Sort By: 
S

Sayed 15 Jul in  C Language Classes

Show previous answers

Dishaapro replied | 04 Aug

Thank You for the question Sayed....
The use of local blocks for storing variable is unusual and therefore should be avoided.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Umesh replied | 05 Aug

yes

0 0

Answer

You can add upto 6 Images

S

Show previous answers

Sourabh replied | 04 Aug

When a variable can take many values and you have to do different kind of things at different value, then you are supposed to use switch statement instead of multiple if statements.
For eg: Suppose a client chooses his/her location as something and you want to run a function depending on its location, then you will use switch statement as it will reduce complexity and length of code.

0 0

Dishaapro replied | 04 Aug

Thank You for your question...
Switch statement is better than multiple if statements when we are having multiple options for the same variable.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

M

My 15 Jul in  C Language Classes

Show previous answers

Sourabh replied | 04 Aug

No.

0 0

Dishaapro replied | 04 Aug

Thanks for your question....
No it is not needed. If condition matches any one of the statement it executes else it executes the default statements. If there is no default statement the program continues with the following part of the switch statement.
Thank You,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

S

Sandeep 15 Jul in  C Language Classes

Show previous answers

Vandana replied | 01 Aug

A macro is a name given to a block of C statements as a preprocessor directive. Being a pre-processor, the block of code is communicated to the compiler before entering into the actual coding (main () function). A macro is defined with the preprocessor directive, #define.

0 0

Chetan replied | 05 Aug

A macro is a fragment of code which has been given a name. Whenever the name is used, it is replaced by the contents of the macro.
There are two kinds of macros. They differ mostly in what they look like when they are used. Object-like macros resemble data objects when used, function-like macros resemble function calls.

0 0

Answer

You can add upto 6 Images

K

Show previous answers

Harish replied | 04 Aug

When writing your C program, you can include files in two ways. The first way is to surround the file you want to include with the angled brackets. This method of inclusion tells the preprocessor to look for the file in the predefined default location. This predefined default location is often an INCLUDE environment variable that denotes the path to your include files. For instance,...  more»
When writing your C program, you can include files in two ways. The first way is to surround the file you want to include with the angled brackets. This method of inclusion tells the preprocessor to look for the file in the predefined default location. This predefined default location is often an INCLUDE environment variable that denotes the path to your include files. For instance, given the INCLUDE variable INCLUDE=C:COMPILERINCLUDE;S:SOURCEHEADERS; using the #include version of file inclusion, the compiler first checks the C:COMPILERINCLUDE directory for the specified file. If the file is not found there, the compiler then checks the S:SOURCEHEADERS directory. If the file is still not found, the preprocessor checks the current directory. The second way to include files is to surround the file you want to include with double quotation marks. This method of inclusion tells the preprocessor to look for the file in the current directory first, then look for it in the predefined locations you have set up. Using the #include "file" version of file inclusion and applying it to the preceding example, the preprocessor first checks the current directory for the specified file. If the file is not found in the current directory, the C:COMPILERINCLUDE directory is searched. If the file is still not found, the preprocessor checks the S:SOURCEHEADERS directory. «less

0 0

Dishaapro replied | 04 Aug

Thanks for the question Kajol ......
Using #include you can use those header files which are defined by the compiler and using #include “file” you can include nonstandard header files that you have created for use in your program.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

S

Sharmistha 15 Jul in  C Language Classes

Show previous answers

Dishaapro replied | 04 Aug

Thanks for your question Sharmistha....
By using #undef pre-processor directive we can override a defined macro.
Thanks,
Team DishaaPro,
http://www.dishaapro.com

0 0

Chetan replied | 11 Aug

We can use the #ifdef and #undef directive to undefine a previously defined macro.

0 0

Answer

You can add upto 6 Images

R

Raj 15 Jul in  C Language Classes

Show previous answers

Rahul P replied | 04 Aug

streams can be classified into two types:
1. text streams and
2. binary streams
1.Text streams are interpreted, with a maximum length of 255 characters. With text streams, carriage return/line feed combinations are translated to the newline n character and vice versa.
2.Binary streams are uninterpreted and are treated one byte at a time with no translation...  more»
streams can be classified into two types:
1. text streams and
2. binary streams
1.Text streams are interpreted, with a maximum length of 255 characters. With text streams, carriage return/line feed combinations are translated to the newline n character and vice versa.
2.Binary streams are uninterpreted and are treated one byte at a time with no translation of characters. a text stream would be used for reading and writing standard text files, printing output to the screen or printer, or receiving input from the keyboard. A binary text stream would typically be used for reading and writing binary files such as graphics or word processing documents, reading mouse input, or reading and writing to the modem. «less

0 0

Dishaapro replied | 04 Aug

Thank You for your question Raj......
Yes you can force stdout to be printed somewhere other than the screen by using the concept redirection.
Thank You,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

A

Akash 15 Jul in  C Language Classes

Show previous answers

C

Chetna Kumari replied | 11 Aug

There are Three Types of linkages in C programming. 1.) Extewrnal linkage ,2.) Internal linkage,3.)None linkage
External Linkage-> means global, non-static variables and functions.
Internal Linkage-> means static variables and functions with file scope.
None Linkage-> means Local variables.

0 0

Punit replied | 12 Aug

"External linkage" the variable could be defined somewhere else outside the file you are working on, which means you can define it inside any other translation unit rather your current one
"Internal linkage" the variable must be defined in your translation unit scope, which means it should either be defined in any of the included libraries, or in the same file scope.
"None...  more»
"External linkage" the variable could be defined somewhere else outside the file you are working on, which means you can define it inside any other translation unit rather your current one
"Internal linkage" the variable must be defined in your translation unit scope, which means it should either be defined in any of the included libraries, or in the same file scope.
"None linkage" , points to the default functions and braces scopes, such as defining an auto variable inside a function, this will make the variable only accessable within that function's scope. «less

0 0

Answer

You can add upto 6 Images

V

Vinodha 15 Jul in  C Language Classes

Show previous answers

Ramagiri replied | 21 Jul

If you refer the array by just using its name, you are referring to the beginning of the array using its address. If you are using the index along with the array name, you are referring to a specific array element.
In first case, Array name can be used as lvalue, if you handle it as a pointer and use a '*.
In second case, there is no issue in using it as lvalue, as long...  more»
If you refer the array by just using its name, you are referring to the beginning of the array using its address. If you are using the index along with the array name, you are referring to a specific array element.
In first case, Array name can be used as lvalue, if you handle it as a pointer and use a '*.
In second case, there is no issue in using it as lvalue, as long as you follow other rules like array is declared, index is valid and within range. «less

0 0

Dishaapro replied | 04 Aug

Thanks for the question Vinodha,
No because array is not an expression it is a collection of similar types of elements.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

M

Mohd 15 Jul in  C Language Classes

Show previous answers

Surya Narayana replied | 08 Aug

Rvalue is the value which is on the right side of a mathematical expression.

0 0

Chetan replied | 11 Aug

Rvalue was added with the C++11 standard.
An lvalue is an expression that refers to a memory location and allows us to take the address of that memory location via the & operator.
An rvalue is an expression that is not an lvalue
eg :
int foobar();
int j = 0;
j = foobar();
HERE foobar() is an rvalue.

0 0

Answer

You can add upto 6 Images

P

Show previous answers

Sourabh replied | 04 Aug

Select the commented section and press ctrl + / in dev cpp. You can try it in others also.

0 0

Dishaapro replied | 04 Aug

Thanks for the question Prasad ......
With the help of multiline comment block /* …… */
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

A

Ajay 15 Jul in  C Language Classes

Show previous answers

P

Poojitha replied | 18 Jul

open dir,close dir

0 0
K

Kumar replied | 19 Jul

I need to print out the file info based on file size or alphabetical order. How can I sort the result from Directory.GetFiles()?

0 0

Answer

You can add upto 6 Images

K

Kamal 15 Jul in  C Language Classes

Show previous answers

Sourabh replied | 04 Aug

No, you can call other function(s) inside a function but you cannot define a new function in it.

0 0

Dishaapro replied | 04 Aug

Thanks for the question Kamal,
No a function cannot be defined inside another function.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

L

Lamaan 15 Jul in  C Language Classes

Show previous answers

Ganesh replied | 06 Aug

function returns single value at a time

0 0

Surya Narayana replied | 08 Aug

With the use of pointers a function can return multiple values.

0 0

Answer

You can add upto 6 Images

P

Pradeep 15 Jul in  C Language Classes

Is left-to-right or right-to-left order guaranteed for operator precedence?

1 0

Dishaapro replied | 04 Aug

Thanks for the question Pradeep.....
The C language does not always evaluates from left-to-right or right-to-left. Generally, function calls are executed first, followed by complex expressions and then simple expressions.
Thank You,
Team DishaaPro
http://www.dishaapro.com

0 0

Sg replied | 09 Aug

Pradeep,
Left to right or right to left (Precedence and Order of Evaluation of Operators) is guaranteed as specified for the Operator, an example,
Logical AND (&&) and Logical OR (||), are guaranteed to be left to right, as in case of && if first (left) part evaluates to false then the right part will not be evaluated and similarly in case of logical OR (||) if first part...  more»
Pradeep,
Left to right or right to left (Precedence and Order of Evaluation of Operators) is guaranteed as specified for the Operator, an example,
Logical AND (&&) and Logical OR (||), are guaranteed to be left to right, as in case of && if first (left) part evaluates to false then the right part will not be evaluated and similarly in case of logical OR (||) if first part evaluates to true then second part will not be evaluated.
This is called Associativity.

Team http://www.SG-Tech.in «less

0 0

Answer

You can add upto 6 Images

V

Vishal 15 Jul in  C Language Classes

Show previous answers

Umasankar replied | 18 Jul

The least significant byte is low order byte and most significant byte is high order byte.

0 0

Chetan replied | 11 Aug

In Simple way :
To understand High/Low-order bytes/bits, consider int as an example. int is 4 bytes in length. The 1st byte is the low-order byte, whereas the 4th byte is the high-order byte. This is the same for bits. For example, still using the int example, the 1st bit is the low-order bit, whereas the 32nd bit is the high-order bit.

One Nibble is 4 bit's in...  more»
In Simple way :
To understand High/Low-order bytes/bits, consider int as an example. int is 4 bytes in length. The 1st byte is the low-order byte, whereas the 4th byte is the high-order byte. This is the same for bits. For example, still using the int example, the 1st bit is the low-order bit, whereas the 32nd bit is the high-order bit.

One Nibble is 4 bit's in length. 2 nibbles make a byte. The lower-order nibble is the first 4 bits. The last 4 bits is the higher-order nibble. «less

0 0

Answer

You can add upto 6 Images

D

Deepak 15 Jul in  C Language Classes

Show previous answers

Maqubool replied | 22 Jul

Just write the entire program in only file and include headers once only.

0 0

Dishaapro replied | 04 Aug

Thank You for the question Deepak.......
You can use conditional pre-processor directive #ifdef or #ifndef.
Thank You,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

P

Pankaj 15 Jul in  C Language Classes

Show previous answers

Harish replied | 29 Jul

Yes. We can include files of extension .C also if any function or external variable is defined in other file and we want to use it in the current file.

0 0

Dishaapro replied | 04 Aug

Thanks for the question Pankaj......
The pre-processor will include any file you specify inside #include statement but however it is recommended not to use any other extension except .h or .hpp in an #include statement.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

S

Sita 15 Jul in  C Language Classes

Show previous answers

Harish replied | 30 Jul

With the help of enum, you can declare multiple constants at once

0 0

Harish replied | 04 Aug

Using the enum keyword to define a constant can have several benefits. First, constants declared with enum are automatically generated by the compiler, thereby relieving the programmer of manually assigning unique values to each constant. Also, constants declared with enum tend to be more readable to the programmer, because there is usually an enumerated type identifier associated...  more»
Using the enum keyword to define a constant can have several benefits. First, constants declared with enum are automatically generated by the compiler, thereby relieving the programmer of manually assigning unique values to each constant. Also, constants declared with enum tend to be more readable to the programmer, because there is usually an enumerated type identifier associated with the constant's definition.

Additionally, enumerated constants can usually be inspected during a debugging session. This can be an enormous benefit, especially when the alternative is having to manually look up the constant's value in a header file. Unfortunately, using the enum method of declaring constants takes up slightly more memory space than using the#define method of declaring constants, because a memory location must be set up to store the constant.

Here is an example of an enumerated constant used for tracking errors in your program:

enum Error_Code { OUT_OF_MEMORY, INSUFFICIENT_DISK_SPACE, LOGIC_ERROR, FILE_NOT_FOUND }; «less

0 0

Answer

You can add upto 6 Images

B

Show previous answers

Hem replied | 08 Aug

-enum are deifined like structure
-enum type name can be used to declare variable of its type
-Eg: enum course{BCA,Btech,MCA,Mtech}; in C we can declare variable of its type like
enum course program_code;

0 0

Punit replied | 11 Aug

#define statements are handled by the pre-processor before the compiler gets to see the code whereas enums are part of the C language itself and have the following advantages. They may have type and the compiler can type-check them. Since they are available to the compiler, symbol information on them can be passed through to the debugger, making debugging easier.

0 0

Answer

You can add upto 6 Images

H

Himangi 15 Jul in  C Language Classes

Show previous answers

Harish replied | 04 Aug

Yes

0 0

Dishaapro replied | 04 Aug

Thanks for the question......
Yes include files can be nested any number of times based on the compiler.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

R

Show previous answers

Techtok replied | 09 Aug

To print the line number we can use "__LINE__"

Example:
printf (stderr, "error at File: %s , Line: %d)", __FILE__, __LINE__);

0 0

Abhay Garg replied | 10 Aug

use _LINE_

0 0

Answer

You can add upto 6 Images

D

Dhanya 15 Jul in  C Language Classes

Show previous answers

Sundeep replied | 29 Jul

int main()
{
printf("%f",ceil(1.66));
}
Add header files stdio.h and math.h
stdio.h for printf
math.h for ceil.

0 0

Dishaapro replied | 04 Aug

Thanks for the question Dhanya ......
Using the function ceil (1.66)
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

B

Basundhara 15 Jul in  C Language Classes

Show previous answers

Surya Narayana replied | 08 Aug

Yes, every operator will have an associativity.

0 0

Pinal Pathak replied | 09 Aug

Yes every operator has an associativity which decides the priority to calculate any expression. lets say if you have expression like 5*6+3-2 ..so which to operate first. * has higher associativity then + and - so it has to be evaluated first

0 0

Answer

You can add upto 6 Images

R

Rakhi 15 Jul in  C Language Classes

Show previous answers

K

Kumar replied | 02 Aug

Statements which are enclosed in left brace ({) and the right brace (}) forms a local Block.
Local Block can have any number of statements.
Branching Statements or Conditional Statements, Loop Control Statements such as if,else,switch,for,while forms a local block.
These Statements contain braces , so the portion of code between two braces would be considered a local...  more»
Statements which are enclosed in left brace ({) and the right brace (}) forms a local Block.
Local Block can have any number of statements.
Branching Statements or Conditional Statements, Loop Control Statements such as if,else,switch,for,while forms a local block.
These Statements contain braces , so the portion of code between two braces would be considered a local block.
Variables declared in a local block have local scope i.e they can be accessed within the block only. «less

0 0

Dishaapro replied | 04 Aug

Thanks for the question Rakhi,
The portion of code within two braces of a function is known as local block.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

Previous1234567Next

About UrbanPro

UrbanPro.com helps you to connect with the best C Language Classes in India. Post Your Requirement today and get connected.

Have a Question?

Thousands of expert tutors are available to answer your question

Looking for C Language Classes?

Find best C Language Classes in your locality on UrbanPro.

FIND NOW

Do you offer C Language Classes?

Create Free Profile Now »

Top Contributors

Umasankar

50 Answers

Vinod

46 Answers

Sg

44 Answers

Dishaapro

44 Answers

Harish

44 Answers

Maqubool

32 Answers

Algorithm

25 Answers

Chetan

25 Answers

Rahul P

22 Answers

Sponsored

Find Best C Language Classes?

Find Now »