EX-23 25 eyconsent.htm CONSENT OF INDEPENDENT ACCOUNTANT eyconsent

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the reference to our firm under the captions “Financial Highlights” and “Counsel and Independent Registered Public Accounting Firm” and to the use of our report dated February 11, 2008, which is incorporated by reference in this Registration Statement (Form N-1A 33-27172 and 811-5719) of Dreyfus Stock Index Fund, Inc.

ERNST & YOUNG LLP

New York, New York 
April 9, 2008