0

This question already has an answer here:

List<Account> acc=[Select id from Account];
for(Account a:acc)
{
}

for(Account a:Select id from Account)
{
}

what is the difference in both

marked as duplicate by Pranay Jaiswal, Community Mar 27 at 11:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.