Explain this code.
#include <stdio.h>
void f1(int *k)
{
*k = *k + 10;
}
main ( ){
int i;
i = 0;
printf (" The value of i before call %d \n", i);
f1 (&i);
printf (" The value of i after call %d \n", i);
}
Answer Posted / vivek
it will produce an error as constant cant be added to a pointer
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Explain continue keyword in c
What is static identifier?
How will you find a duplicate number in a array without negating the nos ?
What is the general form of a C program?
What is scope and lifetime of a variable in c?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Explain how can type-insensitive macros be created?
What do you mean by scope of a variable in c?
What is an endless loop?
What is the benefit of using an enum rather than a #define constant?
If you know then define #pragma?
What is the use of in c?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Explain the use of function toupper() with and example code?