Write a C program to Remove even numbers and fill it with zeros.
Note: You can use only one loop for your logic.
Two variables apart from the array.
Input array 1,2,3,4,5,6
Output 1,3,5,0,0,0
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
nitin1 commented: true!! +2
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
sureshshan1292 0 Newbie Poster
iamthwee
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
nitin1 15 Master Poster
somjit{} commented: 80% ? hmm.... +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
harini angelina 0 Newbie Poster
shintoz 0 Newbie Poster
Adak 419 Nearly a Posting Virtuoso
sureshvarman 0 Newbie Poster
madhana.gopal.902 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Vish0203 -6 Junior Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Vish0203 -6 Junior Poster
Vish0203 -6 Junior Poster
Gonbe 32 Newbie Poster
Gonbe 32 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.