function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vimisha JainVimisha Jain 

Hi to all what is the out put for this please for(contact c:trigger.new) { string x=c.account.name; }

SravsSravs
the value of x should be null and there will be no exceptions. 
PrasanntaPrasannta (Salesforce Developers) 
Hi,

Here the new value of the contact' s account name will be assigned to the string variable 'x'.