Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

int main()
{
int x=10;
printf("x=%d, count of earlier print=%d",
x,printf("x=%d, y=%d",x,--x));
getch();

}
==================================================

returns error>> ld returned 1 exit status
===================================================
Does it have something to do with printf() inside another
printf().

Answer Posted / aditya lele

By the way the error that you are talking about is because
of the fact that your function has an integer return type
and you are not returning anything.
add a

return 0;

at the end before you close the main()

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is full form of PEPSI

1304


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

1673


Sir... please give some important coding questions asked by product companies..

1340


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

2620


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

3648






could you please send the program code for multiplying sparse matrix in c????

2605


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

1294


Write a routine to implement the polymarker function

3872


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2294


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

1931


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

558


How can you relate the function with the structure? Explain with an appropriate example.

2384


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

2533


How to palindrom string in c language?

6881


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

1725