C Language

C Language

+ Follow 23,628 Followers

Share

Showing 1 to 25 of 176
Sort By: 
P

Pannelal 21/12/2016 in  C Language Classes

How to use database in programming in 'c' and also tell me name of database for programming in 'c'?

0 0
S

Sravani replied | 07 Jan

BMN.

0 0

Answer

You can add upto 6 Images

Show previous answers

S

Sneha replied | 26/12/2016

Rs. 500/- per hour.

0 0

Abhay replied | 28/12/2016

Mr Mayur, I will suggest to lookout market standard And also your experience that you are going to share with students. In fact it's also vary from student to student paying capacity.

0 0

Answer

You can add upto 6 Images

Tanha 28/09/2016 in  C Language Classes

Show previous answers

Tripti replied | 26/10/2016

Syntax Error means compile time error.
it means the code is not appropriate for compiler.

0 0

Jyoti replied | 29/11/2016

The easiest to know understand would be syntax in any programming language is just like grammar in any language (hindi,english etc) that we speak.
So, if you don't follow the set of rules for a programming language it would lead to wrong syntax.
example in C:
int x; //correct
itn x; // incorrect

0 0

Answer

You can add upto 6 Images

B

Bhuvanesh 06/09/2016 in  C Language Classes

Show previous answers

Umasankar replied | 12/10/2016

I can teach you C++ in depth with practical exercise. You can approach me.

0 0

Jyoti replied | 29/11/2016

Hi,
Are you looking for C++ or the subject "object oriented programming using C++"?
Both can be done by our trainers who don't just have good experience but also understand how things have to be taught so that its easy for students to understand.

0 0

Answer

You can add upto 6 Images

R

Rupendra 03/09/2016 in  C Language Classes

Show previous answers

Y

Y.syed Sha Muhamed replied | 20/09/2016

consider one D array's address
Address of A [ I ] = Base + Width * ( I -- LB )

Where,
I = Subscript of element whose address is to be found
LB = Lower limit / Lower Bound of subscript, if not specified assume 0 (zero)

Where,
B = Base address
W = Storage Size of one element stored in the array (in byte)
I = Subscript of element...  more»
consider one D array's address
Address of A [ I ] = Base + Width * ( I – LB )

Where,
I = Subscript of element whose address is to be found
LB = Lower limit / Lower Bound of subscript, if not specified assume 0 (zero)

Where,
B = Base address
W = Storage Size of one element stored in the array (in byte)
I = Subscript of element whose address is to be found
LB = Lower limit / Lower Bound of subscript, if not specified assume 0 (zero)onedimensional array
in 2d is matrix it is obtained in 2 for loop
3d is 3 for loop
nd is n for loop «less

0 0

Chetan replied | 29/09/2016

Array of an element of an array say A[ I ] is calculated using the following formula:

Address of A [ I ] = B + W * ( I -- LB )

Where,
B = Base address
W = Storage Size of one element stored in the array (in byte)
I = Subscript of element whose address is to be found
LB = Lower limit / Lower Bound of subscript, if not specified assume 0...  more»
Array of an element of an array say “A[ I ]” is calculated using the following formula:

Address of A [ I ] = B + W * ( I – LB )

Where,
B = Base address
W = Storage Size of one element stored in the array (in byte)
I = Subscript of element whose address is to be found
LB = Lower limit / Lower Bound of subscript, if not specified assume 0 (zero)

Example:

Given the base address of an array B[1300…..1900] as 1020 and size of each element is 2 bytes in the memory. Find the address of B[1700].

Solution:

The given values are: B = 1020, LB = 1300, W = 2, I = 1700

Address of A [ I ] = B + W * ( I – LB )

= 1020 + 2 * (1700 – 1300)
= 1020 + 2 * 400
= 1020 + 800
= 1820 [Ans] «less

0 0

Answer

You can add upto 6 Images

S

Subramani 30/08/2016 in  C Language Classes

Show previous answers

Suman replied | 29/09/2016

I provide c/c++ classes and i have more than 6 years of development experience in c.

0 0

Umasankar replied | 12/10/2016

It is depends on the how much depth knowledge you would like to learn. It varies from 3000 to 8000

0 0

Answer

You can add upto 6 Images

S

Surbhi 26/08/2016 in  C Language Classes

Show previous answers

Ranganath replied | 24/09/2016

seek in-person, 1-to-1 training, for good understanding of the subject.

0 0

Umasankar replied | 12/10/2016

You can approach, I will teach in depth, make you profession c developer

0 0

Answer

You can add upto 6 Images

A

Abhishek 11/08/2016 in  C Language Classes

Show previous answers

Sheenam replied | 08/09/2016

8 = 01000
after right shift no = 0001 right most 3 bits will be discarded.
output = 1

0 0

Umasankar replied | 12/10/2016

Right shift is equivalent to dividing the number by 2.
Here 8 >> 1 = 4
8>> 2 = 2
8 >> 3 = 1

0 0

Answer

You can add upto 6 Images

A

Abhishek 12/08/2016 in  C Language Classes

Show previous answers

Jay replied | 08/09/2016

Lvalue is stand for Left value i.e bascially a memory location where you wan't to store any values. Like
int a=5; in this case 'a' is a Lvalue which denotes a memory location that holds 5 as a integer value

0 0

Umasankar replied | 08/09/2016

lvalue is an identifier which will occupy member and store the rvalue in that memory.

0 0

Answer

You can add upto 6 Images

P

Pradeep 15/07/2016 in  C Language Classes

Show previous answers

Prof Kripa Shanker replied | 26/08/2016

Line starting with # is used for preprocessor

0 0

Umasankar replied | 12/10/2016

#line is predefined macro. It is used to print currently executing line number.
#line is mainly used to logging the software execution flow to find the bugs in the software (also called as debug enabled build.)

0 0

Answer

You can add upto 6 Images

A

Anil 15/07/2016 in  C Language Classes

Show previous answers

Punit replied | 13/08/2016

The ‘#pragma’ directive is the method specified by the C standard for providing additional information to the compiler, beyond what is conveyed in the language itself. Three forms of this directive (commonly known as pragmas) are specified by the 1999 C standard. A C compiler is free to attach any meaning it likes to other pragmas.

0 0

Eshwar Chandra replied | 28/08/2016

Pragmatic is a very complex pre processor directive as it depends on the platform/hardware. It is used to indicate the minimum memory size to be used for any data type to increase the speed of data access. We know that a character is of size one byte but when you declare #pragma 4 , every character will occupy 4 bytes of memory, this will speed up your system because if you're writing...  more»
Pragmatic is a very complex pre processor directive as it depends on the platform/hardware. It is used to indicate the minimum memory size to be used for any data type to increase the speed of data access. We know that a character is of size one byte but when you declare #pragma 4 , every character will occupy 4 bytes of memory, this will speed up your system because if you're writing code for 32 bit cpu, which indicates that it's data bus size is 32 bits meaning it can fetch 4 bytes of data in one cpu cycle then it would be efficient to declare variable of size which is multiple of 4. There's another cover you need to know odd address and even address. Let me know in comments if you want me to explain that. «less

0 0

Answer

You can add upto 6 Images

A

Avishkar 15/07/2016 in  C Language Classes

Show previous answers

Praveen replied | 14/08/2016

It purely depends on the programming language. C, C#, Java all provide array indices starting from zero (0).
COBOL, FORTRAN, ALGOL etc. languages provide array indices starting from 1.

0 0

Salim replied | 21/08/2016

Yes in C Language array subscripts always starts with zero

0 0

Answer

You can add upto 6 Images

R

Rakes 15/07/2016 in  C Language Classes

Show previous answers

Satya Prakash replied | 10/08/2016

one most important thing is the last character must be NULL if not null then it will also a array of character

0 0

Chetan replied | 11/08/2016

String is array of characters terminated with null.

0 0

Answer

You can add upto 6 Images

S

Subhasish 15/07/2016 in  C Language Classes

Show previous answers

Dishaapro replied | 04/08/2016

Thank You for your Questions....
_DATE_ macro expands to a string constant that describes the date on which the pre-processor is being run whereas _TIME_ macro expands to a string constant that describes the time at which the pre-processor is being run.
Thanks,
Team DishaaPro

0 0

Umesh replied | 05/08/2016

It is the preprocessor commands used for mostly debugging.

0 0

Answer

You can add upto 6 Images

V

Vibha 15/07/2016 in  C Language Classes

Show previous answers

Punit replied | 13/08/2016

The following are the differences:
- String can hold only char data. Where as an array can hold any data type.
- An array size can not be changed. Where as a string size can be changed if it is a char pointer
- The last element of an array is an element of the specific type. The last character of a string is a null -- \0 character.
- The length of an array...  more»
The following are the differences:
- String can hold only char data. Where as an array can hold any data type.
- An array size can not be changed. Where as a string size can be changed if it is a char pointer
- The last element of an array is an element of the specific type. The last character of a string is a null – ‘\0’ character.
- The length of an array is to specified in [] at the time of declaration (except char[]). The length of the string is the number of characters + one (null character). «less

0 0

Punit replied | 13/08/2016

he ANSI C standard provides a predefined symbol named __STDC__ that is set to 1 when the compiler is enforcing strict ANSI standard conformance. If you want your programs to be 100 percent ANSI conformant, you should ensure that the __STDC__ symbol is defined. If the program is being compiled with non-ANSI options, the __STDC__ symbol is undefined. The following code segment shows...  more»
he ANSI C standard provides a predefined symbol named __STDC__ that is set to 1 when the compiler is enforcing strict ANSI standard conformance. If you want your programs to be 100 percent ANSI conformant, you should ensure that the __STDC__ symbol is defined. If the program is being compiled with non-ANSI options, the __STDC__ symbol is undefined. The following code segment shows how this symbol can be checked:


#ifdef __STDC__
printf("Congratulations! You are conforming perfectly to the ANSI
standards!
");
#else
printf("Shame on you, you nonconformist anti-ANSI rabble-rousing programmer!
");
#endif «less

0 0

Answer

You can add upto 6 Images

N

Nilam 15/07/2016 in  C Language Classes

Show previous answers

Chetan replied | 11/08/2016

Stream means flow...
ofstream This data type represents the output file stream and is used to create files and to write information to files.
ifstream This data type represents the input file stream and is used to read information from files

0 0

Sarfraaz replied | 08/09/2016

A stream is a logical representation of the sequence of bytes that constitute the data flowing between the source and the destination. ifstream represents the data flowing into the program. ofstream represents the data flowing out of the program.

0 0

Answer

You can add upto 6 Images

D

Show previous answers

Sg replied | 10/08/2016

return

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

0 0

Chetan replied | 11/08/2016

return

0 0

Answer

You can add upto 6 Images

S

Sumit 15/07/2016 in  C Language Classes

Show previous answers

Punit replied | 12/08/2016

he remainder that results from performing integer division.

0 0

Techboost replied | 12/08/2016

Modulus operator gives you remainder left after the division operation. Ex. 5%2 gives you 1

0 0

Answer

You can add upto 6 Images

S

Sanjeev 15/07/2016 in  C Language Classes

Show previous answers

Dishaapro replied | 04/08/2016

Thank You for the question Sanjeev,
Yes you can skip break in the last switch statement but it is recommended to use break in each and every switch case even though that will be the last statement.
Thank You,
Team DishaaPro
http://www.dishaapro.com

0 0

Dishaapro replied | 04/08/2016

Thanks for the question Sanjeev....
Yes you can skip break in the last switch statement but it is recommended to use break in each and every switch case even though that will be the last statement.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

S

Sanjay 15/07/2016 in  C Language Classes

Show previous answers

Dishaapro replied | 04/08/2016

Thanks for the question Sanjay,
The comma operator is commonly used to separate variable declarations, function arguments and expressions.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Chetan replied | 05/08/2016

Comma operator ( , ) is a binary operator.
-------
USE
-------
1. for (first = s, s += len - 1; s >= first; --s)
2. ++p, ++q;
3. int a=1, b=2, c=3;
4. if (y = f(x), y > x)
5. if (failure)
return (errno = EINVAL, -1);
This can be written more verbosely as:
if (failure) {
errno = EINVAL;
return -1;
}
6....  more»
Comma operator ( , ) is a binary operator.
-------
USE
-------
1. for (first = s, s += len - 1; s >= first; --s)
2. ++p, ++q;
3. int a=1, b=2, c=3;
4. if (y = f(x), y > x)
5. if (failure)
return (errno = EINVAL, -1);
This can be written more verbosely as:
if (failure) {
errno = EINVAL;
return -1;
}
6. printf("Hello, %s!", "world");
7. printf("Computer","Programming");
8. void addition(n1,n2,ans);
....etc. «less

0 0

Answer

You can add upto 6 Images

N

Nagasanthoshi 15/07/2016 in  C Language Classes

Show previous answers

Dishaapro replied | 04/08/2016

Thanks for the question Nagasanthoshi,
Lvalue is something that can stand on the left side of an assignment. In most of the cases it is the variable name where the value gets stored.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0

Surya Narayana replied | 08/08/2016

Lvalue is the value which appears to the left side of the mathematical expression

0 0

Answer

You can add upto 6 Images

C

Chittaranjan 15/07/2016 in  C Language Classes

Show previous answers

Dishaapro replied | 04/08/2016

Thank you for the question.........
++var is the example of pre increment operator where the value of the variable is incremented by 1 before it is used in the expression.
Var++ is an example of post increment operator where the expression is evaluated and then the value of the variable is incremented by 1.
Thanks,
Team DishaaPro
...  more»
Thank you for the question.........
++var is the example of pre increment operator where the value of the variable is incremented by 1 before it is used in the expression.
Var++ is an example of post increment operator where the expression is evaluated and then the value of the variable is incremented by 1.
Thanks,
Team DishaaPro
http://www.dishaapro.com «less

0 0

Umesh replied | 05/08/2016

++var means first value will increase then var will print and in var++ first var value will print then increment take place.
main()
{
i=2;
printf("Value of i++[%d] ++i[%d]",i++,++i);
}
output
i++[2] ++i[4]

0 0

Answer

You can add upto 6 Images

R

R.s.praveen 15/07/2016 in  C Language Classes

Show previous answers

C

Chetna Kumari replied | 11/08/2016

If you know the length of the strings you can combine them with shifting and boolean operations.
Code ( (Unknown Language)):

C = (A<<4) | B ;

With strings you need to use library functions.
There are no string concatenation operators in C. Literal strings can be concatenated explicitly as initializers or printf arguments.

0 0

Brwc replied | 12/08/2016

The result of concatenating two character strings is another character string. If both character strings are of datatype CHAR, the result has datatype CHAR and is limited to 2000 characters. If either string is of datatype VARCHAR2, the result has datatype VARCHAR2 and is limited to 4000 characters. If either argument is a CLOB, the result is a temporary CLOB. Trailing blanks in...  more»
The result of concatenating two character strings is another character string. If both character strings are of datatype CHAR, the result has datatype CHAR and is limited to 2000 characters. If either string is of datatype VARCHAR2, the result has datatype VARCHAR2 and is limited to 4000 characters. If either argument is a CLOB, the result is a temporary CLOB. Trailing blanks in character strings are preserved by concatenation, regardless of the datatypes of the string or CLOB

example :SELECT 'Name is ' || last_name
FROM employees; «less

0 0

Answer

You can add upto 6 Images

N

Name 15/07/2016 in  C Language Classes

Show previous answers

Rahul P replied | 04/08/2016

You can use the ifdef and ifndef preprocessor directives to check whether a symbol has been defined (ifdef) .

0 0

Dishaapro replied | 04/08/2016

Thank You for the question ....
To check the symbol has been defined use the #ifdef function.
Thank You,
Team DishaaPro
http://www.dishaapro.com

0 0

Answer

You can add upto 6 Images

S

Shivani 15/07/2016 in  C Language Classes

Show previous answers

Dishaapro replied | 04/08/2016

Thank You for the question Shivani,
No for an array you cannot go beyond the size of an array.
Thanks,
Team DishaaPro
http://www.dishaapro.com

0 0
V

Vikramjeet replied | 04/08/2016

C language do not perform any bounds check on array during run time, so it will not give any error if you are doing so.

But technically its not right to do so, because the memory location you are using or manipulating anything may contain some very sensitive information, which may other program are using, can lead to crash the program or machine itself..

0 0

Answer

You can add upto 6 Images

12345678Next

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 Class

25 Answers

Chetan

25 Answers

Rahul P

22 Answers

Sponsored

About UrbanPro

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

Find Best C Language Classes?

Find Now »