In the below code, how do you modify the value 'a' and print
in the function. You'll be allowed to add code only inside
the called function.
main()
{
int a=5;
function(); // no parameters should be passed
}
function()
{
/* add code here to modify the value of and print here */
}
Answer / aravind
#include<stdio.h>
void function(void );
int main()
{
int a=5;
function();
}
function()
{
int a=4;
printf("%d",a); /* a here is a local variable*/
}
| Is This Answer Correct ? | 0 Yes | 1 No |
get any number as input except 1 and the output will be 1.without using operators,expressions,array,structure.don't print 1 in printf statement
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }
What are control structures? What are the different types?
Will Macros support multiple arguments ?
What are inbuilt functions in c?
C program to find frequency of each character in a text file?
Is c is a middle level language?
what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);
sir i got 146 correct question & i have also the advantage of height so will they consider my marks as 146+3=149.can any body tell me how they consider my height marks.
write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????