A cylinder of radius R and length L is placed in a uniform electric field E parallel to the cylinder axis. The total flux for the surface of the cylinder is given by
Flux through surface A ϕA=E×πR2 and ϕB=−E×πR2
Flux through curved surface C=∫E.ds=∫Edscos90∘=0
∴ Total flux through cylinder =ϕA+ϕB+ϕc=0