printy(a=3,a=2)
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
this is the user writtern function...... this is function
definition statement..... it wont recoganize this statement
because no memory will be allocated for this a=3 or 2...
since we didnt declare it first of all/.. this may be the
error
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / guest
if we want to show result as a=3,a=2..then it ll be written
as
printf("a=3,a=2");
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / parthibanselvaraj
the printf function canbe redefined by your program using
typedef and try this.
| Is This Answer Correct ? | 1 Yes | 0 No |
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
How to develop a program using C language to convert 8-bit binary values to decimals. TQ
How to upgrade LOOP environment, I just mean, how can i make loop statement editable ? I just try some program using loop statement and checking it in multiple compilers. Every compiler showing different output, what's the wrong ? is it a compiler based problem, or loop based problem, tell me why ? and what will be the debugging process, for this kind of problem ?
loop1: { x=i<n?(i++):0; printf("%d",i); exit(x); continue; } Error- misplaced continue. Doubt-1.will the exit(x) be executed for all values of x 2.will this statement go out of the program.
class test { int a; public: test(int b):a(b){} void show(){ cout<<a; } }; void main() { test t1; test t2(5); t1.show(); t2.show(); } }
Given that two int variables, total and amount , have been declared, write a sequence of statements that: initializes total to 0 reads three values into amount , one at a time. After each value is read in to amount , it is added to the value in total (that is, total is incremented by the value in amount ). Instructor's notes: If you use a loop, it must be a for loop. And if you use a loop control variable for counting, you must declare it.
A sample program using data structure? what is file handling?
what is meant by linking error? how can i solve it? if there is a linking error " unable to open file 'cos.obj'? then what should i do?
#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
void main() { int i=7; printf("N= %*d",i,i); }
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
How to create a program that lists the capital country when told what the original country is? (Terribly sorry, I'm a novice programmer and would appreciate any help ;). Cheers, Alexxis